aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c
diff options
context:
space:
mode:
authorJens Axboe <[email protected]>2025-05-28 19:45:44 +0000
committerJens Axboe <[email protected]>2025-05-28 19:50:19 +0000
commit2c7f023219966777be0687e15b57689894304cd3 (patch)
tree424be03f5e4f0543db063b65840e189fe4c5886a /drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c
parentio_uring/zcrx: fix area release on registration failure (diff)
downloadkernel-2c7f023219966777be0687e15b57689894304cd3.tar.gz
kernel-2c7f023219966777be0687e15b57689894304cd3.zip
io_uring/net: only consider msg_inq if larger than 1
Currently retry and general validity of msg_inq is gated on it being larger than zero, but it's entirely possible for this to be slightly inaccurate. In particular, if FIN is received, it'll return 1. Just use larger than 1 as the check. This covers both the FIN case, and at the same time, it doesn't make much sense to retry a recv immediately if there's even just a single 1 byte of valid data in the socket. Leave the SOCK_NONEMPTY flagging when larger than 0 still, as an app may use that for the final receive. Cc: [email protected] Reported-by: Christian Mazakas <[email protected]> Fixes: 7c71a0af81ba ("io_uring/net: improve recv bundles") Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c')
0 files changed, 0 insertions, 0 deletions