Jens Axboe 7dc1ed215b io_uring/rw: don't allow multishot reads without NOWAIT support
commit 2a975d426c82ff05ec1f0b773798d909fe4a3105 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2024-04-10 16:38:16 +02:00
..
2023-12-29 11:58:41 -08:00
2023-11-28 11:56:29 -07:00
2022-12-07 06:47:13 -07:00
2024-04-03 15:32:17 +02:00
2022-07-24 18:39:11 -06:00
2022-07-24 18:39:14 -06:00
2023-08-11 10:42:57 -06:00
2024-01-11 14:19:23 -08:00