ublk: simplify aborting request
authorMing Lei <ming.lei@redhat.com>
Mon, 9 Oct 2023 09:33:22 +0000 (17:33 +0800)
committerJens Axboe <axboe@kernel.dk>
Tue, 17 Oct 2023 14:27:56 +0000 (08:27 -0600)
commitb4e1353f465147e38b2cd5086d0c20b77dfc61ec
treed7ce1a1209f00a802b4f9756679479f7e4f5672d
parent216c8f5ef0f209a3797292c487bdaa6991ab4b92
ublk: simplify aborting request

Now ublk_abort_queue() is run exclusively with ublk_queue_rq() and the
ubq_daemon task, so simplify aborting request:

- set UBLK_IO_FLAG_ABORTED in ublk_abort_queue() just for aborting
this request

- abort request in ublk_queue_rq() if ubq->canceling is set

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