Re: panic: mutex Giant not owned at /usr/src/sys/kern/tty_ttydisc.c:1127

From: Julian Elischer <julian_at_elischer.org>
Date: Sun, 25 Jan 2009 00:30:16 -0800
Alfred Perlstein wrote:
> * Maksim Yevmenkin <maksim.yevmenkin_at_gmail.com> [090124 01:38] wrote:
>> from what i can see you are _NOT_ using _SPIN_ mutexes (aka spin
>> locks). you are using regular mutexes. let me quote locking(9) man
>> page
>>
>> "
>> Mutexes
>>      Basically (regular) mutexes will deschedule the thread if the mutex can
>>      not be acquired.  A non-spin mutex can be considered to be equivalent to
>>      getting a write lock on an rw_lock (see below),
>> "
>>
>> so, if thread can not get mutex it will be descheduled. this
>> absolutely can not happen in netgraph!
> 
>>From a purely academic standpoint... why can't netgraph use
> standard mutexes?
> 
> Is there a pointer you can give me?

see my later post..
it can, but you really want to be sure that you know who you are 
contending with..

> 
> -Alfred
> _______________________________________________
> freebsd-current_at_freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-current
> To unsubscribe, send any mail to "freebsd-current-unsubscribe_at_freebsd.org"
Received on Sun Jan 25 2009 - 07:30:13 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:41 UTC