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>
Mon, 2 Mar 2020 21:04:24 +0000 (14:04 -0700)
commit29de5f6a350778a621a748cecc7efbb8f0cfa5a7
treeed72ae7e02d2c1d77877e8a2f1b614500222da1e
parent80ad894382bf1d73eb688c29714fa10c0afcf2e7
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