aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c
diff options
context:
space:
mode:
authorJens Axboe <[email protected]>2025-01-30 15:40:29 +0000
committerJens Axboe <[email protected]>2025-01-30 16:41:25 +0000
commit8c8492ca64e79c6e0f433e8c9d2bcbd039ef83d0 (patch)
treeb9ae2f7cd2afff4da68d738351b3302428b19fdd /drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c
parentio_uring/rw: simplify io_rw_recycle() (diff)
downloadkernel-8c8492ca64e79c6e0f433e8c9d2bcbd039ef83d0.tar.gz
kernel-8c8492ca64e79c6e0f433e8c9d2bcbd039ef83d0.zip
io_uring/net: don't retry connect operation on EPOLLERR
If a socket is shutdown before the connection completes, POLLERR is set in the poll mask. However, connect ignores this as it doesn't know, and attempts the connection again. This may lead to a bogus -ETIMEDOUT result, where it should have noticed the POLLERR and just returned -ECONNRESET instead. Have the poll logic check for whether or not POLLERR is set in the mask, and if so, mark the request as failed. Then connect can appropriately fail the request rather than retry it. Reported-by: Sergey Galas <[email protected]> Cc: [email protected] Link: https://github.com/axboe/liburing/discussions/1335 Fixes: 3fb1bd688172 ("io_uring/net: handle -EINPROGRESS correct for IORING_OP_CONNECT") Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c')
0 files changed, 0 insertions, 0 deletions