io_uring: rely solely on FMODE_NOWAIT
authorJens Axboe <axboe@kernel.dk>
Tue, 9 May 2023 15:19:10 +0000 (09:19 -0600)
committerJens Axboe <axboe@kernel.dk>
Mon, 15 May 2023 16:12:27 +0000 (10:12 -0600)
commitcaec5ebe77f97d948dcf46f07d622bda7f1f6dfd
tree95e863cea88687bd67e6135ba20a308286863285
parente9833d8701028b5dd62895e68f4a280aad359172
io_uring: rely solely on FMODE_NOWAIT

Now that we have both sockets and block devices setting FMODE_NOWAIT
appropriately, we can get rid of all the odd special casing in
__io_file_supports_nowait() and rely soley on FMODE_NOWAIT and
O_NONBLOCK rather than special case sockets and (in particular) bdevs.

Link: https://lore.kernel.org/r/20230509151910.183637-4-axboe@kernel.dk
Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_uring/io_uring.c