]> git.baikalelectronics.ru Git - kernel.git/commit
block: fix "check bi_size overflow before merge"
authorAndreas Gruenbacher <agruenba@redhat.com>
Mon, 9 Dec 2019 19:11:14 +0000 (20:11 +0100)
committerJens Axboe <axboe@kernel.dk>
Tue, 10 Dec 2019 05:04:35 +0000 (22:04 -0700)
commit9eda4c6fc269933250240d8fcc346d8fea93639c
tree4d0f4bb1643821a729440b51421ebfb82144916d
parentf67d5138d37e63a9f67d9fe87937ea3da01f13ea
block: fix "check bi_size overflow before merge"

This partially reverts commit b317ba860223d834737892f9b2d8e7d22fb45f92.

Commit b317ba860223 ("check bi_size overflow before merge") adds a bio_full
check to __bio_try_merge_page.  This will cause __bio_try_merge_page to fail
when the last bi_io_vec has been reached.  Instead, what we want here is only
the bi_size overflow check.

Fixes: b317ba860223 ("block: check bi_size overflow before merge")
Cc: stable@vger.kernel.org # v5.4+
Reviewed-by: Ming Lei <ming.lei@redhat.com>
Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/bio.c