ublk_drv: add ublk_queue_cmd() for cleanup
authorMing Lei <ming.lei@redhat.com>
Sat, 29 Oct 2022 01:04:32 +0000 (09:04 +0800)
committerJens Axboe <axboe@kernel.dk>
Mon, 31 Oct 2022 13:23:24 +0000 (07:23 -0600)
commitfee32f312405726eec6b35b5740c48acda0315e9
tree2ceb2d3eedab93a5eeabe93334eec05c687ddc5a
parent3ab6e94ca539242247d4f00414a1bde584d001ed
ublk_drv: add ublk_queue_cmd() for cleanup

Add helper of ublk_queue_cmd() so that both ublk_queue_rq()
and ublk_handle_need_get_data() can reuse this helper.

Signed-off-by: Ming Lei <ming.lei@redhat.com>
Reviewed-by: ZiyangZhang <ZiyangZhang@linux.alibaba.com>
Link: https://lore.kernel.org/r/20221029010432.598367-5-ming.lei@redhat.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/ublk_drv.c