panic: sleeping thread owns a mutex

M. Warner Losh imp at bsdimp.com
Mon Apr 28 19:53:07 PDT 2003


In message: <0HE200DATX6MIM at mta5.snfc21.pbi.net>
            Jeffrey Hsu <hsu at FreeBSD.org> writes:
: Now, what about the race between the WI_UNLOCK() and the mtx_destroy() in
: wi_detach() and any other WI_LOCK(), say in wi_start()?

Nothing that I can see.  Maybe we need to take out the if lock before
taking out the wi_lock and require that the if_detach interface be
locked...  But I haven't thought about it too much so there's likely
issues with it.

Warner



More information about the freebsd-current mailing list