Messages in this thread | | | Subject | Re: [PATCH 1/4] lockdep: lock_set_subclass() fix | From | Peter Zijlstra <> | Date | Tue, 08 Nov 2011 10:40:46 +0100 |
| |
On Tue, 2011-11-08 at 17:07 +0800, Yong Zhang wrote: > So something like below?
that fails to clear/init the class_cache, leading to all sorts of problems.
Wiping the class_cache just reduces performance somewhat, not wiping them is disastrous since it can results in wild pointer derefs.
Now we could fix up register_lock_class() to reset the class_cache, although that's a little tricky and I'm not sure its worth it.
Anyway, I see you just realized the same.. ;-)
| |