]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit7e61a06aca40de237e2bf5a302e56b5487fc6a06
tree2ceb2d3eedab93a5eeabe93334eec05c687ddc5a
parent8aa6f2dd259a1b6ebbf89f23d4cf46c1d013b1c6
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