ublk: cleanup io cmd code path by adding ublk_fill_io_cmd()
authorMing Lei <ming.lei@redhat.com>
Fri, 19 May 2023 06:50:25 +0000 (14:50 +0800)
committerJens Axboe <axboe@kernel.dk>
Sat, 20 May 2023 01:59:17 +0000 (19:59 -0600)
commitf236a21459a5cdd828b93f363946e116773494f6
treef27367cff9ea2a009a9e3f3ac143c6743d9ea696
parent29dc5d06613f2438ec20a4ba5e0a5a740584d346
ublk: cleanup io cmd code path by adding ublk_fill_io_cmd()

Add one small helper to cleanup io command hanlding code path.

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