Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 04 May 2007 14:40:32 -0700
From:      Julian Elischer <julian@elischer.org>
To:        John Baldwin <jhb@freebsd.org>
Cc:        attilio@freebsd.org, freebsd-current@freebsd.org, Harald Schmalzbauer <h.schmalzbauer@omnisec.de>
Subject:   Re: PANIC: blockable slep lock (sx) msi @ ....msi.c:374
Message-ID:  <463BA850.8000804@elischer.org>
In-Reply-To: <200705041546.50690.jhb@freebsd.org>
References:  <463B7A1D.6020602@omnisec.de> <463BF1A7.1050504@FreeBSD.org> <200705041546.50690.jhb@freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
John Baldwin wrote:

> 
> This is wrong because once you do critical_enter(), you are free to assume 
> that you won't do a context switch until you critical_exit(), and sx_xlock() 
> would violate that if it blocked on the lock.

wellllll critical enter doesn't block interupts so it's true if you don't call
an interrupt as a context switch.
(it doesn't SWITCH contexts but it does step into a different context.)

> 




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