Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1bbb4bd9 authored by Sahitya Tummala's avatar Sahitya Tummala
Browse files

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: default avatarSahitya Tummala <stummala@codeaurora.org>
parent e8b3c550
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -806,9 +806,7 @@ bool __bio_try_merge_page(struct bio *bio, struct page *page,
	if (bio->bi_vcnt > 0) {
		struct bio_vec *bv = &bio->bi_io_vec[bio->bi_vcnt - 1];

		if (page_is_mergeable(bv, page, len, off, same_page)) {
			if (bio->bi_iter.bi_size > UINT_MAX - len)
				return false;
		if (page == bv->bv_page && off == bv->bv_offset + bv->bv_len) {
			bv->bv_len += len;
			bio->bi_iter.bi_size += len;
			return true;