non-sleepable locks held (xl0)
Bill Paul
wpaul at FreeBSD.ORG
Mon May 23 22:07:13 PDT 2005
> Mike, Bill,
>
> On Mon, May 23, 2005 at 04:55:34PM -0400, Mike Jakubik wrote:
> M> Not sure if this is reported already, but i got this on a recently cvsuped
> M> -current system while booting.
>
> ACK, my fault.
>
> We can't just zero ta_pending flag, since task may have alredy been
> triggered, and now is being waiting on driver lock at xl_rxeof_task().
>
> Probably we need to run taskqueue_drain() before locking driver
> mutex, that is before call to xl_lock().
>
> Bill, what is your opinion?
You can't sleep in taskqueue_drain() with a lock held (clowns
will eat you). Wait for the taskqueue to drain first, then lock.
-Bill
--
=============================================================================
-Bill Paul (510) 749-2329 | Senior Engineer, Master of Unix-Fu
wpaul at windriver.com | Wind River Systems
=============================================================================
<adamw> you're just BEGGING to face the moose
=============================================================================
More information about the freebsd-current
mailing list