Repository navigation
Commit 2df15ef
io_uring: fix short read retries for non-reg files
commit 9a17334 upstream.
Sockets and other non-regular files may actually expect short reads to
happen, don't retry reads for them. Because non-reg files don't set
FMODE_BUF_RASYNC and so it won't do second/retry do_read, we can filter
out those cases after first do_read() attempt with ret>0.
Cc: stable@vger.kernel.org # 5.9+
Suggested-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>1 parent f3ac7a5 commit 2df15ef
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3461 | 3461 | | |
3462 | 3462 | | |
3463 | 3463 | | |
3464 | | - | |
| 3464 | + | |
3465 | 3465 | | |
3466 | 3466 | | |
3467 | 3467 | | |
| |||
0 commit comments