]> git.proxmox.com Git - mirror_ubuntu-eoan-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)
committerStefan Bader <stefan.bader@canonical.com>
Tue, 12 Nov 2019 17:47:39 +0000 (18:47 +0100)
commit0d00e436d9d6f306939ab1e8ba4e82e233a033e9
tree5c210394c2d43d3484bca8d3ccc0006ba74573ff
parentc4e1bc6f8fca24af89275fc676ee1a6b07420f50
net: use skb_queue_empty_lockless() in busy poll contexts

BugLink: https://bugs.launchpad.net/bugs/1852111
[ 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>
Signed-off-by: Connor Kuehl <connor.kuehl@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
drivers/crypto/chelsio/chtls/chtls_io.c
net/core/datagram.c
net/core/sock.c
net/ipv4/tcp.c
net/sctp/socket.c