lkml.org 
[lkml]   [2007]   [Dec]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Need lockdep help
On Sun, 2 Dec 2007, Arjan van de Ven wrote:

> > This creates a lockdep violation; each rwsem in turn is locked while
> > the other is being held. However the only way this could lead to
> > deadlock would be if there was already a bug in the system Power
> > Management code (overlapping notifications).
>
> or.. modifications to the notifier chain while all this is happening
> (remember: rwsems are fair, once a writer shows up, all readers wait)

But modifications to the notifier chain don't invoke the callout
routines. Hence they won't try to lock the new rwsem and won't lead to
deadlock.

Alan Stern



\
 
 \ /
  Last update: 2007-12-02 21:11    [W:0.042 / U:1.316 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site