Re: How should a driver shutdown a taskqueue on detach?

From: Jack Vogel <jfvogel_at_gmail.com>
Date: Wed, 1 Jul 2015 13:58:20 -0700
But if you've disabled interrupts why would an "interrupt-handling task"
even run??

Jack


On Wed, Jul 1, 2015 at 12:44 PM, Ryan Stone <rysto32_at_gmail.com> wrote:

> I'm trying to figure out how a driver is supposed to shut down its
> interrupt-handling taskqueue when it detaches.  taskqueue(9) recommends
> disabling interrupts, draining each task and then freeing the taskqueue.
> The problem that I have is the interrupt-handling tasks will sometimes
> re-enable interrupts on the device.  Is there a better way than using some
> kind of flag internally in the driver to note that a detach is in progress
> that the interrupt handlers will have to check before enabling interrupts?
> _______________________________________________
> freebsd-current_at_freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-current
> To unsubscribe, send any mail to "freebsd-current-unsubscribe_at_freebsd.org"
>
Received on Wed Jul 01 2015 - 18:58:22 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:58 UTC