diff options
| author | Pavel Begunkov <[email protected]> | 2021-01-21 12:01:08 +0000 |
|---|---|---|
| committer | Jens Axboe <[email protected]> | 2021-01-22 19:42:54 +0000 |
| commit | 9a173346bd9e16ab19c7addb8862d95a5cea9feb (patch) | |
| tree | ffd10ce5da523cb493941b1f11f02823af7de2ee /drivers/gpu/drm/amd/amdgpu/amdgpu_atomfirmware.c | |
| parent | io_uring: fix SQPOLL IORING_OP_CLOSE cancelation state (diff) | |
| download | kernel-9a173346bd9e16ab19c7addb8862d95a5cea9feb.tar.gz kernel-9a173346bd9e16ab19c7addb8862d95a5cea9feb.zip | |
io_uring: fix short read retries for non-reg files
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: [email protected] # 5.9+
Suggested-by: Jens Axboe <[email protected]>
Signed-off-by: Pavel Begunkov <[email protected]>
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_atomfirmware.c')
0 files changed, 0 insertions, 0 deletions
