]> git.baikalelectronics.ru Git - kernel.git/commit
io_uring: allow O_NONBLOCK async retry
authorJens Axboe <axboe@kernel.dk>
Wed, 10 Jun 2020 01:23:05 +0000 (19:23 -0600)
committerJens Axboe <axboe@kernel.dk>
Wed, 10 Jun 2020 01:38:24 +0000 (19:38 -0600)
commit90fc1169b7d11457fe03c483fd1f4ef74ac5a622
treeb07a4c3d289efb1e3963741f2a986dd1ca41a002
parent3749a7b087575adfeca862bfa5d82972be0e7e06
io_uring: allow O_NONBLOCK async retry

We can assume that O_NONBLOCK is always honored, even if we don't
have a ->read/write_iter() for the file type. Also unify the read/write
checking for allowing async punt, having the write side factoring in the
REQ_F_NOWAIT flag as well.

Cc: stable@vger.kernel.org
Fixes: 1dc092b895e5 ("io_uring: only force async punt if poll based retry can't handle it")
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c