io_uring: treat NONBLOCK and RWF_NOWAIT similarly
authorPavel Begunkov <asml.silence@gmail.com>
Thu, 4 Feb 2021 13:52:05 +0000 (13:52 +0000)
committerJens Axboe <axboe@kernel.dk>
Thu, 4 Feb 2021 15:05:46 +0000 (08:05 -0700)
commit75c668cdd6ca05dd9c7138a5a080c0088d72cf51
treeb33682b52d0be846be9719da13a93217901630a1
parentb23df91bff954ebd8aee39eb22e5028f41cd9e56
io_uring: treat NONBLOCK and RWF_NOWAIT similarly

Make decision making of whether we need to retry read/write similar for
O_NONBLOCK and RWF_NOWAIT. Set REQ_F_NOWAIT when either is specified and
use it for all relevant checks. Also fix resubmitting NOWAIT requests
via io_rw_reissue().

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c