svn commit: r212964 - head/sys/kern
mdf at FreeBSD.org
mdf at FreeBSD.org
Tue Sep 21 16:39:25 UTC 2010
On Tue, Sep 21, 2010 at 9:36 AM, Andriy Gapon <avg at freebsd.org> wrote:
> on 21/09/2010 19:31 mdf at FreeBSD.org said the following:
>> I keep forgetting, but actually _mtx_lock_sleep() will just return if
>> panicstr is set. _mtx_assert() is similarly guarded, so actually it
>> should be mostly okay.
>
> But this doesn't seem to be the case for sx lock which is wrapped under KLD_LOCK() ?
Right, that was it. I knew I hit a problem on 7 in the past.
The right thing is probably to guard the sx_[sx]lock_hard primitives
and sx_assert in the same way.
Thanks,
matthew
More information about the svn-src-all
mailing list