svn commit: r216944 - head/sys/i386/xen

Colin Percival cperciva at freebsd.org
Tue Jan 4 15:59:55 UTC 2011


On 01/04/11 05:00, John Baldwin wrote:
> On Monday, January 03, 2011 7:16:38 pm Colin Percival wrote:
>> +#ifdef INVARIANTS
>>  	if (__predict_true(gdtset))
>> -		critical_enter();
>> +		KASSERT(curthread->td_critnest > 0,
>> +		    ("xen queue flush should be in a critical section"));
>> +#endif
>> +
> 
> You can use CRITICAL_ASSERT(curthread) instead perhaps.

Duh.  I was looking for that but somehow didn't feed the right keywords to grep.

Thanks!

-- 
Colin Percival
Security Officer, FreeBSD | freebsd.org | The power to serve
Founder / author, Tarsnap | tarsnap.com | Online backups for the truly paranoid


More information about the svn-src-all mailing list