]> git.baikalelectronics.ru Git - kernel.git/commit
io_uring: short circuit -EAGAIN for blocking read attempt
authorJens Axboe <axboe@kernel.dk>
Sat, 15 Aug 2020 22:58:42 +0000 (15:58 -0700)
committerJens Axboe <axboe@kernel.dk>
Sat, 15 Aug 2020 22:58:42 +0000 (15:58 -0700)
commit76b702c46049b2095a98e40e131148be8c4673c0
treeebb9688b7038d2ec980ab1d3bbc798b874033406
parent437dfb340818c3a3e810688a94d7d390989c42de
io_uring: short circuit -EAGAIN for blocking read attempt

One case was missed in the short IO retry handling, and that's hitting
-EAGAIN on a blocking attempt read (eg from io-wq context). This is a
problem on sockets that are marked as non-blocking when created, they
don't carry any REQ_F_NOWAIT information to help us terminate them
instead of perpetually retrying.

Fixes: 1fa9de55d2c2 ("io_uring: internally retry short reads")
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c