io_uring: rely solely on FMODE_NOWAIT fmode_nowait
authorJens Axboe <axboe@kernel.dk>
Tue, 9 May 2023 14:56:01 +0000 (08:56 -0600)
committerJens Axboe <axboe@kernel.dk>
Thu, 11 May 2023 13:24:07 +0000 (07:24 -0600)
commit60d51e3dea8bd07f66b731e318a9cbbd288e6556
tree8f143720579524e87b003153d14c6e26028110e3
parentd22f190efabecb393ded0b761a8873640b4e6257
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.

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