]> git.baikalelectronics.ru Git - kernel.git/commit
io_uring: no read/write-retry on -EAGAIN error and O_NONBLOCK marked file
authorJens Axboe <axboe@kernel.dk>
Wed, 2 Sep 2020 15:30:31 +0000 (09:30 -0600)
committerJens Axboe <axboe@kernel.dk>
Wed, 2 Sep 2020 16:20:41 +0000 (10:20 -0600)
commit85e465188f90796ca3b0ae2d81f9e2cd4a5494c0
treeee49225444e80e0940697321d98a53be221271bc
parentdb00f5f1d736a9ee3b8e0d8457d3c15cc0e77bcc
io_uring: no read/write-retry on -EAGAIN error and O_NONBLOCK marked file

Actually two things that need fixing up here:

- The io_rw_reissue() -EAGAIN retry is explicit to block devices and
  regular files, so don't ever attempt to do that on other types of
  files.

- If we hit -EAGAIN on a nonblock marked file, don't arm poll handler for
  it. It should just complete with -EAGAIN.

Cc: stable@vger.kernel.org
Reported-by: Norman Maurer <norman.maurer@googlemail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c