Commit 3d501f5
Revert "udp: avoid calling sock_def_readable() if possible"
This reverts commit 612b1c0. 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: 612b1c0 ("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>1 parent cecc155 commit 3d501f5
1 file changed
Lines changed: 3 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1674 | 1674 | | |
1675 | 1675 | | |
1676 | 1676 | | |
1677 | | - | |
1678 | 1677 | | |
1679 | 1678 | | |
1680 | 1679 | | |
| |||
1715 | 1714 | | |
1716 | 1715 | | |
1717 | 1716 | | |
1718 | | - | |
1719 | 1717 | | |
1720 | 1718 | | |
1721 | 1719 | | |
1722 | | - | |
1723 | | - | |
1724 | | - | |
1725 | | - | |
1726 | | - | |
1727 | | - | |
1728 | | - | |
1729 | | - | |
1730 | | - | |
| 1720 | + | |
| 1721 | + | |
| 1722 | + | |
1731 | 1723 | | |
1732 | 1724 | | |
1733 | 1725 | | |
| |||
0 commit comments