On 10 Oct, Stefan Farfeleder wrote:
> On Tue, Oct 08, 2002 at 09:26:29PM -0700, Don Lewis wrote:
>> On  8 Oct, Stefan Farfeleder wrote:

>> > However, WITNESS complains (only once) about this:
>> > lock order reversal
>> >  1st 0xc662140c kqueue mutex (kqueue mutex) @ 
>/freebsd/current/src/sys/kern/kern_event.c:714
>> >  2nd 0xc6727d00 pipe mutex (pipe mutex) @ 
>/freebsd/current/src/sys/kern/sys_pipe.c:1478
>> 
>> That's pretty similar to the lock order reversal I've seen in the pipe
>> code and it's interaction with sigio, which is not suprising since
>> pipeselwakeup() calls both pgsigio() and KNOTE(), often while the pipe
>> lock is held.  Correctly fixing this doesn't look easy ...
> 
> Is it just a warning or does it pose a real problem?

It's a warning of a potential problem.  If someone else was trying to
grab the locks in the opposite order at the same time, you'd get a
deadlock.



To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message

Reply via email to