[PATCH v3 4/4] io_uring/uring_cmd: avoid double indirect call in task work dispatch
Christoph Hellwig
hch at lst.de
Mon Oct 27 00:51:42 PDT 2025
> +static void blk_cmd_complete(struct io_tw_req tw_req, io_tw_token_t tw)
> {
> + unsigned int issue_flags = IO_URING_CMD_TASK_WORK_ISSUE_FLAGS;
In most of these ioctl handlers issue_flags only has a single user,
so you might as well pass it directly.
In fact asm most external callers of io_uring_cmd_done pass that, would
a helper that just harcodes it make sense and then maybe switch the
special cases to use __io_uring_cmd_done directly?
More information about the Linux-nvme
mailing list