Commit f91daf5
committed
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: 227c0c9 ("io_uring: internally retry short reads")
Signed-off-by: Jens Axboe <axboe@kernel.dk>1 parent d4e7cd3 commit f91daf5
1 file changed
+4
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3186 | 3186 | | |
3187 | 3187 | | |
3188 | 3188 | | |
| 3189 | + | |
| 3190 | + | |
3189 | 3191 | | |
3190 | 3192 | | |
3191 | 3193 | | |
| |||
3195 | 3197 | | |
3196 | 3198 | | |
3197 | 3199 | | |
3198 | | - | |
| 3200 | + | |
| 3201 | + | |
3199 | 3202 | | |
3200 | 3203 | | |
3201 | 3204 | | |
| |||
0 commit comments