Re: Q. lockdep_assert_held() and lockdep_off/on()

From: Peter Zijlstra
Date: Fri Apr 08 2011 - 09:32:40 EST

On Fri, 2011-04-08 at 22:19 +0900, J. R. Okajima wrote:
> Hello Peter Zijlstra and Ingo Molnar,
> May I ask you a question about the commit
> f607c66 2009-08-02 lockdep: Introduce lockdep_assert_held()
> In short, should lockdep_assert_held() support ->lockdep_recursion?

Probably, however

> Its current definition is
> #define lockdep_assert_held(l) WARN_ON(debug_locks && !lockdep_is_held(l))
> When someone somewhere calls lockdep_off() and executes some memory

you're not supposed to do that..

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at
Please read the FAQ at