]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
io_uring: disable io-wq execution of multishot NOWAIT requests
authorJens Axboe <axboe@kernel.dk>
Mon, 1 Apr 2024 17:30:06 +0000 (11:30 -0600)
committerJens Axboe <axboe@kernel.dk>
Mon, 1 Apr 2024 17:46:22 +0000 (11:46 -0600)
commitbee1d5becdf5bf23d4ca0cd9c6b60bdf3c61d72b
tree881094e3d6bcf21e6e708c9fe0b3bf59a8901e1e
parent2a975d426c82ff05ec1f0b773798d909fe4a3105
io_uring: disable io-wq execution of multishot NOWAIT requests

Do the same check for direct io-wq execution for multishot requests that
commit 2a975d426c82 did for the inline execution, and disable multishot
mode (and revert to single shot) if the file type doesn't support NOWAIT,
and isn't opened in O_NONBLOCK mode. For multishot to work properly, it's
a requirement that nonblocking read attempts can be done.

Cc: stable@vger.kernel.org
Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_uring/io_uring.c