]> 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)
commit1c5739b0023ba3112c38afae1fa70c008d9a2f04
treeb33682b52d0be846be9719da13a93217901630a1
parent775a4c0bb61a5508a865dff88efc3154b056cafd
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