Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 28 Apr 2003 20:53:01 -0600 (MDT)
From:      "M. Warner Losh" <imp@bsdimp.com>
To:        hsu@FreeBSD.org
Cc:        jhb@FreeBSD.org
Subject:   Re: panic: sleeping thread owns a mutex
Message-ID:  <20030428.205301.112263174.imp@bsdimp.com>
In-Reply-To: <0HE200DATX6MIM@mta5.snfc21.pbi.net>
References:  <imp@bsdimp.com> <0HE200DATX6MIM@mta5.snfc21.pbi.net>

next in thread | previous in thread | raw e-mail | index | archive | help
In message: <0HE200DATX6MIM@mta5.snfc21.pbi.net>
            Jeffrey Hsu <hsu@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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030428.205301.112263174.imp>