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)
commitebfcd8955c0b52eb793bcbc9e71140e3d0cdb228
tree09f98f4fd317b1a146576e62c700dfd6ef1a4931
parent53108d476a105ab2597d7a4e6040b127829391b5
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