]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerDavid S. Miller <davem@davemloft.net>
Mon, 28 Oct 2019 20:33:41 +0000 (13:33 -0700)
commit2216fdccc5b9365e00e19ec214ed087d9fe967de
tree3cdc7bbab6fc9caa1282afe98eddd91add1aabd7
parent1087632411402c8bdb966b1a4a26484da0bd643d
net: use skb_queue_empty_lockless() in busy poll contexts

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>
drivers/crypto/chelsio/chtls/chtls_io.c
drivers/nvme/host/tcp.c
net/core/datagram.c
net/core/sock.c
net/ipv4/tcp.c
net/sctp/socket.c