summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/syscall-counts-by-pid.py
diff options
context:
space:
mode:
authorEric Dumazet <edumazet@google.com>2017-02-14 09:03:51 -0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-02-26 11:07:49 +0100
commitabd672deb170c4443e41173160de0ba2ae1abc08 (patch)
tree163f5b51c1520479e2cd432b806215e630e23cdd /tools/perf/scripts/python/syscall-counts-by-pid.py
parent2b3eb43342a00d03e953208f45866925ca255e15 (diff)
packet: fix races in fanout_add()
[ Upstream commit d199fab63c11998a602205f7ee7ff7c05c97164b ] Multiple threads can call fanout_add() at the same time. We need to grab fanout_mutex earlier to avoid races that could lead to one thread freeing po->rollover that was set by another thread. Do the same in fanout_release(), for peace of mind, and to help us finding lockdep issues earlier. Fixes: dc99f600698d ("packet: Add fanout support.") Fixes: 0648ab70afe6 ("packet: rollover prepare: per-socket state") Signed-off-by: Eric Dumazet <edumazet@google.com> Cc: Willem de Bruijn <willemb@google.com> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts-by-pid.py')
0 files changed, 0 insertions, 0 deletions