]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita84afbf3156573b6736c740b7f2b220e2474d412
treeb33682b52d0be846be9719da13a93217901630a1
parentdf4de700ab50586de177ee4f7b82509d76c20b93
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