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

Alfred Perlstein alfred at freebsd.org
Sat Jan 24 16:30:11 PST 2009


* 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?

-Alfred


More information about the freebsd-current mailing list