Messages in this thread | | | From | Yong Zhang <> | Subject | [PATCH 0/4] patches to cure race in lock_set_class() | Date | Fri, 4 Nov 2011 17:26:26 +0800 |
| |
This a new version of my previous post[1].
patch#1 is the one which fix the reported bug. So Sergey, Borislav, would you please give it a test?
patch#2~4 is an enhancement which fix a potential race in lock_set_class(). But the fact is the only current user in kernel is lock_set_subclass(), we still have no user which change its 'key' in flying. So I mark it with RFC.
More detail in each patch :)
Thanks, Yong
[1]:http://marc.info/?l=linux-kernel&m=131919035525533
Yong Zhang (4): lockdep: lock_set_subclass() fix lockdep: Let register_lock_class() can be called with/without graph_lock lockdep: split lockdep_init_map() lockdep: fix race condition in __lock_set_class()
include/linux/lockdep.h | 2 +- kernel/lockdep.c | 50 ++++++++++++++++++++++++++++++++-------------- 2 files changed, 36 insertions(+), 16 deletions(-)
-- 1.7.5.4
| |