summaryrefslogtreecommitdiffstats
path: root/net/decnet/sysctl_net_decnet.c
diff options
context:
space:
mode:
authorEric Dumazet <edumazet@google.com>2019-10-24 07:44:48 +0200
committerDavid S. Miller <davem@davemloft.net>2019-10-28 21:33:41 +0100
commitd7d16a89350ab263484c0aa2b523dd3a234e4a80 (patch)
tree177005e5dd42ea6ca09fa54035b4de01b48e3cb1 /net/decnet/sysctl_net_decnet.c
parentMerge git://git.kernel.org/pub/scm/linux/kernel/git/pablo/nf (diff)
downloadlinux-d7d16a89350ab263484c0aa2b523dd3a234e4a80.tar.xz
linux-d7d16a89350ab263484c0aa2b523dd3a234e4a80.zip
net: add skb_queue_empty_lockless()
Some paths call skb_queue_empty() without holding the queue lock. We must use a barrier in order to not let the compiler do strange things, and avoid KCSAN splats. Adding a barrier in skb_queue_empty() might be overkill, I prefer adding a new helper to clearly identify points where the callers might be lockless. This might help us finding real bugs. The corresponding WRITE_ONCE() should add zero cost for current compilers. Signed-off-by: Eric Dumazet <edumazet@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/decnet/sysctl_net_decnet.c')
0 files changed, 0 insertions, 0 deletions