io_uring: consider any io_read/write -EAGAIN as final
authorJens Axboe <axboe@kernel.dk>
Thu, 20 Feb 2020 16:56:08 +0000 (09:56 -0700)
committerJens Axboe <axboe@kernel.dk>
Thu, 27 Feb 2020 21:21:00 +0000 (14:21 -0700)
commit1afadd58df493490c3ded24fe49761f30e065612
tree48cc95b0bb82b480f8ce736f53f38a8856d26b9c
parentd876836204897b6d7d911f942084f69a1e9d5c4d
io_uring: consider any io_read/write -EAGAIN as final

If the -EAGAIN happens because of a static condition, then a poll
or later retry won't fix it. We must call it again from blocking
condition. Play it safe and ensure that any -EAGAIN condition from read
or write must retry from async context.

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