[PATCH 0/4] patches to cure race in lock_set_class()

From: Yong Zhang
Date: Fri Nov 04 2011 - 05:27:07 EST


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

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/