net: use skb_queue_empty_lockless() in busy poll contexts
authorEric Dumazet <edumazet@google.com>
Thu, 24 Oct 2019 05:44:51 +0000 (22:44 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 10 Nov 2019 10:27:49 +0000 (11:27 +0100)
commit4f3df7f1eaa70903c2c0c73c0999e120fe452a2a
tree3c20c466e259af2fc6972a7d4a3e3c8f43b2e39f
parenteaf548feaa17308317bdac2903c1be820e5c186a
net: use skb_queue_empty_lockless() in busy poll contexts

[ Upstream commit 3f926af3f4d688e2e11e7f8ed04e277a14d4d4a4 ]

Busy polling usually runs without locks.
Let's use skb_queue_empty_lockless() instead of skb_queue_empty()

Also uses READ_ONCE() in __skb_try_recv_datagram() to address
a similar potential problem.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/crypto/chelsio/chtls/chtls_io.c
net/core/datagram.c
net/core/sock.c
net/ipv4/tcp.c
net/sctp/socket.c