aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/sctop.py
diff options
context:
space:
mode:
authorPeter Zijlstra <[email protected]>2020-03-13 09:56:38 +0100
committerPeter Zijlstra <[email protected]>2020-03-20 13:06:25 +0100
commit10476e6304222ced7df9b3d5fb0a043b3c2a1ad8 (patch)
treeffabb7c1514caad90cace22b593c01300d05a7a8 /tools/perf/scripts/python/sctop.py
parent25016bd7f4caf5fc983bbab7403d08e64cba3004 (diff)
locking/lockdep: Fix bad recursion pattern
There were two patterns for lockdep_recursion: Pattern-A: if (current->lockdep_recursion) return current->lockdep_recursion = 1; /* do stuff */ current->lockdep_recursion = 0; Pattern-B: current->lockdep_recursion++; /* do stuff */ current->lockdep_recursion--; But a third pattern has emerged: Pattern-C: current->lockdep_recursion = 1; /* do stuff */ current->lockdep_recursion = 0; And while this isn't broken per-se, it is highly dangerous because it doesn't nest properly. Get rid of all Pattern-C instances and shore up Pattern-A with a warning. Signed-off-by: Peter Zijlstra (Intel) <[email protected]> Link: https://lkml.kernel.org/r/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/sctop.py')
0 files changed, 0 insertions, 0 deletions