]> www.infradead.org Git - users/jedix/linux-maple.git/commit
block: copy back bounce buffer to user-space correctly in case of split
authorChristoph Hellwig <hch@lst.de>
Thu, 28 Nov 2024 11:22:32 +0000 (16:52 +0530)
committerJens Axboe <axboe@kernel.dk>
Mon, 23 Dec 2024 15:17:16 +0000 (08:17 -0700)
commit031141976be0bd5f385775727a4ed3cc845eb7ba
tree6d5b124eee407d387285e5534f4594121c593522
parent5dbb3cbd060aa86a722d7d44278e537ae3f63081
block: copy back bounce buffer to user-space correctly in case of split

Copy back the bounce buffer to user-space in entirety when the parent
bio completes. The existing code uses bip_iter.bi_size for sizing the
copy, which can be modified. So move away from that and fetch it from
the vector passed to the block layer. While at it, switch to using
better variable names.

Fixes: 492c5d455969f ("block: bio-integrity: directly map user buffers")
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Anuj Gupta <anuj20.g@samsung.com>
Reviewed-by: Keith Busch <kbusch@kernel.org>
Link: https://lore.kernel.org/r/20241128112240.8867-3-anuj20.g@samsung.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/bio-integrity.c