ublk: support to copy any part of request pages
authorMing Lei <ming.lei@redhat.com>
Fri, 19 May 2023 06:50:28 +0000 (14:50 +0800)
committerJens Axboe <axboe@kernel.dk>
Sat, 20 May 2023 01:59:17 +0000 (19:59 -0600)
commit38f2dd34410f9070b60969a07ff7d8743b4fd56c
treed4bd12a596c36c43114457e5434578e85f31b182
parent8284066946e6d9cc979566ce698fe24e7ca0b31e
ublk: support to copy any part of request pages

Add 'offset' to 'struct ublk_map_data', so that ublk_copy_user_pages()
can be used to copy any sub-buffer(linear mapped) of the request.

Signed-off-by: Ming Lei <ming.lei@redhat.com>
Link: https://lore.kernel.org/r/20230519065030.351216-6-ming.lei@redhat.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/ublk_drv.c