]> git.baikalelectronics.ru Git - kernel.git/commit
block: ensure iov_iter advances for added pages
authorKeith Busch <kbusch@kernel.org>
Tue, 12 Jul 2022 15:32:54 +0000 (08:32 -0700)
committerJens Axboe <axboe@kernel.dk>
Wed, 3 Aug 2022 03:08:54 +0000 (21:08 -0600)
commit5f1ce9dd3d017b715b22bf796e86ac84ae3225c2
tree1c400bac93f02d0333993814ab6f3c3405317950
parent94924c1f0cc6e817db5742d641c8e88290289707
block: ensure iov_iter advances for added pages

There are cases where a bio may not accept additional pages, and the iov
needs to advance to the last data length that was accepted. The zone
append used to handle this correctly, but was inadvertently broken when
the setup was made common with the normal r/w case.

Fixes: 6a1d28d759a5b ("block: use bio_add_page in bio_iov_iter_get_pages")
Fixes: adbe3c38b2a2c ("block/bio: remove duplicate append pages code")
Signed-off-by: Keith Busch <kbusch@kernel.org>
Link: https://lore.kernel.org/r/20220712153256.2202024-1-kbusch@fb.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/bio.c