block: disable multi-page bvec
The multi-page bvec is resulting in the performance regression on UFS devices in sequential read test for upto ~9%. Hence, disable it as a workaround. Change-Id: I1dc3f5e710fd1c9a76f32e3144a0081df755ea26 Signed-off-by: Sahitya Tummala <stummala@codeaurora.org>
This commit is contained in:
parent
e8b3c55035
commit
1bbb4bd9c3
@ -806,9 +806,7 @@ bool __bio_try_merge_page(struct bio *bio, struct page *page,
|
|||||||
if (bio->bi_vcnt > 0) {
|
if (bio->bi_vcnt > 0) {
|
||||||
struct bio_vec *bv = &bio->bi_io_vec[bio->bi_vcnt - 1];
|
struct bio_vec *bv = &bio->bi_io_vec[bio->bi_vcnt - 1];
|
||||||
|
|
||||||
if (page_is_mergeable(bv, page, len, off, same_page)) {
|
if (page == bv->bv_page && off == bv->bv_offset + bv->bv_len) {
|
||||||
if (bio->bi_iter.bi_size > UINT_MAX - len)
|
|
||||||
return false;
|
|
||||||
bv->bv_len += len;
|
bv->bv_len += len;
|
||||||
bio->bi_iter.bi_size += len;
|
bio->bi_iter.bi_size += len;
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
Reference in New Issue
Block a user