aboutsummaryrefslogtreecommitdiff
path: root/include/linux/debugobjects.h
diff options
context:
space:
mode:
authorIngo Molnar <[email protected]>2006-12-13 00:34:43 -0800
committerLinus Torvalds <[email protected]>2006-12-13 09:05:50 -0800
commit74c383f1400f559562aa517d6d62f77245bddf52 (patch)
tree031f6524f0fba31c980bd3d00cc1e6b433d3d2c5 /include/linux/debugobjects.h
parent3117df0453828bd045c16244e6f50e5714667a8a (diff)
[PATCH] lockdep: fix possible races while disabling lock-debugging
Jarek Poplawski noticed that lockdep global state could be accessed in a racy way if one CPU did a lockdep assert (shutting lockdep down), while the other CPU would try to do something that changes its global state. This patch fixes those races and cleans up lockdep's internal locking by adding a graph_lock()/graph_unlock()/debug_locks_off_graph_unlock helpers. (Also note that as we all know the Linux kernel is, by definition, bug-free and perfect, so this code never triggers, so these fixes are highly theoretical. I wrote this patch for aesthetic reasons alone.) [[email protected]: build fix] [[email protected]: build fix's refix] Signed-off-by: Ingo Molnar <[email protected]> Signed-off-by: Jarek Poplawski <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'include/linux/debugobjects.h')
0 files changed, 0 insertions, 0 deletions