]> git.baikalelectronics.ru Git - kernel.git/commit
net: make socket read/write_iter() honor IOCB_NOWAIT
authorJens Axboe <axboe@kernel.dk>
Tue, 10 Dec 2019 03:58:56 +0000 (20:58 -0700)
committerJens Axboe <axboe@kernel.dk>
Tue, 10 Dec 2019 23:33:23 +0000 (16:33 -0700)
commit1ec5b8981549cf13a083e78da8426dcf938bcd64
tree09f98f4fd317b1a146576e62c700dfd6ef1a4931
parentcc96e9a0ff46e6c931bc6e5a332acec016d4fe20
net: make socket read/write_iter() honor IOCB_NOWAIT

The socket read/write helpers only look at the file O_NONBLOCK. not
the iocb IOCB_NOWAIT flag. This breaks users like preadv2/pwritev2
and io_uring that rely on not having the file itself marked nonblocking,
but rather the iocb itself.

Cc: netdev@vger.kernel.org
Acked-by: David Miller <davem@davemloft.net>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
net/socket.c