]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
Revert "udp: avoid calling sock_def_readable() if possible"
authorFernando Fernandez Mancera <ffmancera@riseup.net>
Mon, 2 Dec 2024 15:56:08 +0000 (15:56 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 14 Dec 2024 19:03:07 +0000 (20:03 +0100)
commita36a6d7037fc11f4d01cb32863ad8d518555bd41
tree1843df6c5cb570839284323064c7b676cbf476bb
parentda5cc778e7bf78fe525bc90ec2043f41415c31d9
Revert "udp: avoid calling sock_def_readable() if possible"

[ Upstream commit 3d501f562f63b290351169e3e9931ffe3d57b2ae ]

This reverts commit 612b1c0dec5bc7367f90fc508448b8d0d7c05414. On a
scenario with multiple threads blocking on a recvfrom(), we need to call
sock_def_readable() on every __udp_enqueue_schedule_skb() otherwise the
threads won't be woken up as __skb_wait_for_more_packets() is using
prepare_to_wait_exclusive().

Link: https://bugzilla.redhat.com/2308477
Fixes: 612b1c0dec5b ("udp: avoid calling sock_def_readable() if possible")
Signed-off-by: Fernando Fernandez Mancera <ffmancera@riseup.net>
Reviewed-by: Eric Dumazet <edumazet@google.com>
Link: https://patch.msgid.link/20241202155620.1719-1-ffmancera@riseup.net
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/ipv4/udp.c