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
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"

Reply via email to