brd: split I/O at page boundaries
authorChristoph Hellwig <hch@lst.de>
Mon, 28 Apr 2025 14:09:50 +0000 (07:09 -0700)
committerJens Axboe <axboe@kernel.dk>
Mon, 28 Apr 2025 17:45:41 +0000 (11:45 -0600)
commit3185444f0504ca8ff54e2a7275f1ff60a6a6cf0c
treea25f72e4e722bf0e30a46cc91431d9225305b083
parent95a375a3bed3b8734059351ba046a6fabdbde485
brd: split I/O at page boundaries

A lot of complexity in brd stems from the fact that it tries to handle
I/O spanning two backing pages.  Instead limit the size of a single
bvec iteration so that it never crosses a page boundary and remove all
the now unneeded code.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Reviewed-by: Yu Kuai <yukuai3@huawei.com>
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Link: https://lore.kernel.org/r/20250428141014.2360063-5-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/brd.c