diff options
| author | 2025-12-01 14:41:44 -0700 | |
|---|---|---|
| committer | 2025-12-08 13:32:30 -0700 | |
| commit | 87213b0d847cd300285b5545598e0548baeb5208 (patch) | |
| tree | 1c20faead1da51182d3e282885cb23e3c4b8cbaa /include/linux/clk/ssh:/git@git.zx2c4.com/git: | |
| parent | Merge tag 'nvme-6.19-2025-12-04' of git://git.infradead.org/nvme into block-6.19 (diff) | |
ublk: allow non-blocking ctrl cmds in IO_URING_F_NONBLOCK issue
Handling most of the ublksrv_ctrl_cmd opcodes require locking a mutex,
so ublk_ctrl_uring_cmd() bails out with EAGAIN when called with the
IO_URING_F_NONBLOCK issue flag. However, several opcodes can be handled
without blocking:
- UBLK_CMD_GET_QUEUE_AFFINITY
- UBLK_CMD_GET_DEV_INFO
- UBLK_CMD_GET_DEV_INFO2
- UBLK_U_CMD_GET_FEATURES
Handle these opcodes synchronously instead of returning EAGAIN so
io_uring doesn't need to issue the command via the worker thread pool.
Signed-off-by: Caleb Sander Mateos <csander@purestorage.com>
Reviewed-by: Ming Lei <ming.lei@redhat.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'include/linux/clk/ssh:/git@git.zx2c4.com/git:')
0 files changed, 0 insertions, 0 deletions
