]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ublk: refactor ublk_queue_rq() and add ublk_batch_queue_rq()
authorMing Lei <ming.lei@redhat.com>
Fri, 16 Jan 2026 14:18:42 +0000 (22:18 +0800)
committerJens Axboe <axboe@kernel.dk>
Fri, 23 Jan 2026 03:05:40 +0000 (20:05 -0700)
commit3ac4796b888a2574cb982c89076ed717f122289d
tree51b3b67bfb9af035bf273b7272c0eaf73d093058
parenta4d88375539920b7401ead59d2f944ac23c668ea
ublk: refactor ublk_queue_rq() and add ublk_batch_queue_rq()

Extract common request preparation and cancellation logic into
__ublk_queue_rq_common() helper function. Add dedicated
ublk_batch_queue_rq() for batch mode operations to eliminate runtime check
in ublk_queue_rq().

Signed-off-by: Ming Lei <ming.lei@redhat.com>
Reviewed-by: Caleb Sander Mateos <csander@purestorage.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/ublk_drv.c