summaryrefslogtreecommitdiff
path: root/init/do_mounts.c
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2024-04-01 20:27:33 +0300
committerJens Axboe <axboe@kernel.dk>2024-04-01 20:41:50 +0300
commit2a975d426c82ff05ec1f0b773798d909fe4a3105 (patch)
tree9d10f7202d77fd15722ceefa880a9640d1457a78 /init/do_mounts.c
parent39cd87c4eb2b893354f3b850f916353f2658ae6f (diff)
downloadlinux-2a975d426c82ff05ec1f0b773798d909fe4a3105.tar.xz
io_uring/rw: don't allow multishot reads without NOWAIT support
Supporting multishot reads requires support for NOWAIT, as the alternative would be always having io-wq execute the work item whenever the poll readiness triggered. Any fast file type will have NOWAIT support (eg it understands both O_NONBLOCK and IOCB_NOWAIT). If the given file type does not, then simply resort to single shot execution. Cc: stable@vger.kernel.org Fixes: fc68fcda04910 ("io_uring/rw: add support for IORING_OP_READ_MULTISHOT") Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'init/do_mounts.c')
0 files changed, 0 insertions, 0 deletions