Commit 355afae
committed
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>1 parent 95d1c8e commit 355afae
1 file changed
Lines changed: 10 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2300 | 2300 | | |
2301 | 2301 | | |
2302 | 2302 | | |
| 2303 | + | |
2303 | 2304 | | |
2304 | 2305 | | |
| 2306 | + | |
| 2307 | + | |
2305 | 2308 | | |
2306 | 2309 | | |
2307 | 2310 | | |
| |||
3146 | 3149 | | |
3147 | 3150 | | |
3148 | 3151 | | |
| 3152 | + | |
| 3153 | + | |
| 3154 | + | |
3149 | 3155 | | |
3150 | 3156 | | |
3151 | 3157 | | |
| |||
3287 | 3293 | | |
3288 | 3294 | | |
3289 | 3295 | | |
| 3296 | + | |
| 3297 | + | |
| 3298 | + | |
3290 | 3299 | | |
3291 | 3300 | | |
3292 | 3301 | | |
3293 | 3302 | | |
| 3303 | + | |
3294 | 3304 | | |
3295 | 3305 | | |
3296 | 3306 | | |
| |||
0 commit comments