ublk: kill queuing request by task_work_add
authorMing Lei <ming.lei@redhat.com>
Fri, 19 May 2023 06:50:24 +0000 (14:50 +0800)
committerJens Axboe <axboe@kernel.dk>
Sat, 20 May 2023 01:59:16 +0000 (19:59 -0600)
commit29dc5d06613f2438ec20a4ba5e0a5a740584d346
tree7422f5e58f350ed03c1094695bf09289dfc6e10e
parent9a67aa52a42b31ad44220cc218df3b75a5cd5d05
ublk: kill queuing request by task_work_add

task_work_add() is used from early ublk development stage for handling
request in batch. However, since commit 7d4a93176e01 ("ublk_drv: don't
forward io commands in reserve order"), we can get similar batch
processing with io_uring_cmd_complete_in_task(), and similar performance
data is observed between task_work_add() and
io_uring_cmd_complete_in_task().

Meantime we can kill one fast code path, which is actually seldom used
given it is common to build ublk driver as module.

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