[RFC] Outline of USB process integration in the kernel taskqueue system

Matthew Fleming mdf356 at gmail.com
Fri Nov 5 18:48:06 UTC 2010


On Fri, Nov 5, 2010 at 11:45 AM, Hans Petter Selasky <hselasky at c2i.net> wrote:
> On Friday 05 November 2010 19:39:45 Matthew Fleming wrote:
>> True, but no taskqueue(9) code can handle that.  Only the caller can
>> prevent a task from becoming enqueued again.  The same issue exists
>> with taskqueue_drain().
>
> I find that strange, because that means if I queue a task again while it is
> running, then I doesn't get run? Are you really sure?

If a task is currently running when enqueued, the task struct will be
re-enqueued to the taskqueue.  When that task comes up as the head of
the queue, it will be run again.

Thanks,
matthew


More information about the freebsd-usb mailing list