nvme: optimise io_uring passthrough completion
authorPavel Begunkov <asml.silence@gmail.com>
Mon, 15 May 2023 12:54:43 +0000 (13:54 +0100)
committerJens Axboe <axboe@kernel.dk>
Thu, 25 May 2023 14:54:06 +0000 (08:54 -0600)
commitf026be0e1e881e3395c3d5418ffc8c2a2203c3f3
treec8d5e92977af13f223b6ed5e025294b23eaf31e7
parent5f3139fc46993b2d653a7aa5cdfe66a91881fd06
nvme: optimise io_uring passthrough completion

Use IOU_F_TWQ_LAZY_WAKE via iou_cmd_exec_in_task_lazy() for passthrough
commands completion. It further delays the execution of task_work for
DEFER_TASKRUN until there are enough of task_work items queued to meet
the waiting criteria, which reduces the number of wake ups we issue.

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/ecdfacd0967a22d88b7779e2efd09e040825d0f8.1684154817.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/nvme/host/ioctl.c