diff options
| author | Ming Lei <[email protected]> | 2022-07-13 22:07:11 +0800 |
|---|---|---|
| committer | Jens Axboe <[email protected]> | 2022-07-14 07:15:48 -0600 |
| commit | 0edb3696c1713c42f52acbd8355b545e58f782b1 (patch) | |
| tree | 8dd87ed20c47f5c19ed0153e8bb24bf20ff4c3a7 /include/linux/debugobjects.h | |
| parent | 71f28f3136aff5890cd56de78abc673f8393cad9 (diff) | |
ublk_drv: support to complete io command via task_work_add
Use task_work_add if it is available, since task_work_add can bring
up better performance, especially batching signaling ->ubq_daemon can
be done.
It is observed that task_work_add() can boost iops by +4% on random
4k io test. Also except for completing io command, all other code
paths are same with completing io command via
io_uring_cmd_complete_in_task.
Meantime add one flag of UBLK_F_URING_CMD_COMP_IN_TASK for comparing
the mode easily.
Signed-off-by: Ming Lei <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'include/linux/debugobjects.h')
0 files changed, 0 insertions, 0 deletions