aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/util/trace-event-scripting.c
diff options
context:
space:
mode:
authorWaiman Long <[email protected]>2014-08-06 13:22:01 -0400
committerIngo Molnar <[email protected]>2014-08-13 10:33:34 +0200
commitf0bab73cb539fb803c4d419951e8d28aa4964f8f (patch)
tree0b9616befbd8a892eae3755fb389e2c4296e3d9d /tools/perf/util/trace-event-scripting.c
parent4999201a59ef555f9105d2bb2459ed895627f7aa (diff)
locking/lockdep: Restrict the use of recursive read_lock() with qrwlock
Unlike the original unfair rwlock implementation, queued rwlock will grant lock according to the chronological sequence of the lock requests except when the lock requester is in the interrupt context. Consequently, recursive read_lock calls will now hang the process if there is a write_lock call somewhere in between the read_lock calls. This patch updates the lockdep implementation to look for recursive read_lock calls. A new read state (3) is used to mark those read_lock call that cannot be recursively called except in the interrupt context. The new read state does exhaust the 2 bits available in held_lock:read bit field. The addition of any new read state in the future may require a redesign of how all those bits are squeezed together in the held_lock structure. Signed-off-by: Waiman Long <[email protected]> Signed-off-by: Peter Zijlstra <[email protected]> Cc: Maarten Lankhorst <[email protected]> Cc: Rik van Riel <[email protected]> Cc: Scott J Norton <[email protected]> Cc: Fengguang Wu <[email protected]> Cc: Linus Torvalds <[email protected]> Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions