sctp: fix busy polling
authorEric Dumazet <edumazet@google.com>
Tue, 19 Dec 2023 17:00:17 +0000 (17:00 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 4 Jan 2024 10:29:18 +0000 (10:29 +0000)
commita562c0a2d651e040681b0bfce9b4d229ac3b0b8c
treedff122f7939f384e5f208f324c055c566a951321
parentb15a4cfe100b9acd097d3ae7052448bd1cdc2a3b
sctp: fix busy polling

Busy polling while holding the socket lock makes litle sense,
because incoming packets wont reach our receive queue.

Fixes: 8465a5fcd1ce ("sctp: add support for busy polling to sctp protocol")
Reported-by: Jacob Moroni <jmoroni@google.com>
Signed-off-by: Eric Dumazet <edumazet@google.com>
Cc: Marcelo Ricardo Leitner <marcelo.leitner@gmail.com>
Cc: Xin Long <lucien.xin@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sctp/socket.c