Messages in this thread |  | | | Date | Tue, 6 Dec 2011 08:01:54 -0800 | | From | "Paul E. McKenney" <> | | Subject | Re: [PATCH RFC tip/core/rcu 7/7] rcu: Quiet RCU-lockdep warnings involving interrupt disabling |
| |
On Tue, Dec 06, 2011 at 10:52:32AM +0100, Peter Zijlstra wrote: > On Tue, 2011-12-06 at 09:26 +0800, Yong Zhang wrote: > > > Yeah, because we call might_sleep() in rt_mutex_lock() unconditionally. > > But in this case the 'BUG: sleeping function called from invalid context > > at *' is obviously false positive. > > Why can't this mutex acquisition not block?
Because its purpose in life is to pass its priority on to the lock holder.
Thanx, Paul
> > Maybe we could teach might_sleep() about this special case? > > Sounds horrid. >
|  |