Jens Axboe fe34db062b net: set FMODE_NOWAIT for sockets
The socket read/write functions deal with O_NONBLOCK and IOCB_NOWAIT
just fine, so we can flag them as being FMODE_NOWAIT compliant. With
this, we can remove socket special casing in io_uring when checking
if a file type is sane for nonblocking IO, and it's also the defined
way to flag file types as such in the kernel.

Cc: "David S. Miller" <davem@davemloft.net>
Cc: Eric Dumazet <edumazet@google.com>
Cc: Jakub Kicinski <kuba@kernel.org>
Cc: netdev@vger.kernel.org
Reviewed-by: Paolo Abeni <pabeni@redhat.com>
Link: https://lore.kernel.org/r/20230509151910.183637-2-axboe@kernel.dk
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2023-05-15 10:12:27 -06:00
..
2023-05-05 19:12:01 -07:00
2023-04-26 16:07:23 -07:00
2023-04-27 11:53:57 -07:00
2023-02-21 18:24:12 -08:00
2023-03-16 17:34:40 -07:00
2023-02-13 09:30:14 +00:00
2023-04-21 07:35:51 -07:00
2023-05-05 19:12:01 -07:00
2023-04-29 11:04:14 -07:00
2023-04-27 11:53:57 -07:00
2023-04-13 16:43:38 -07:00
2023-04-19 18:46:17 -07:00
2023-05-15 10:12:27 -06:00