Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 4 Nov 2010 14:49:22 -0700
From:      Matthew Fleming <mdf356@gmail.com>
To:        John Baldwin <jhb@freebsd.org>
Cc:        freebsd-usb@freebsd.org, freebsd-current@freebsd.org, freebsd-arch@freebsd.org, Weongyo Jeong <weongyo.jeong@gmail.com>
Subject:   Re: [RFC] Outline of USB process integration in the kernel taskqueue system
Message-ID:  <AANLkTim6YH7TzcEFuimVhuF9k-n5%2B%2BO5wAbKrmScRFc4@mail.gmail.com>
In-Reply-To: <201011041722.46673.jhb@freebsd.org>
References:  <201011012054.59551.hselasky@c2i.net> <AANLkTinoUKy6P=U7q9qEKvEviw1Z_rxvdBvUotuGuTzi@mail.gmail.com> <201011042115.16187.hselasky@c2i.net> <201011041722.46673.jhb@freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Nov 4, 2010 at 2:22 PM, John Baldwin <jhb@freebsd.org> wrote:
> On Thursday, November 04, 2010 4:15:16 pm Hans Petter Selasky wrote:
>> I think that if a task is currently executing, then there should be a drain
>> method for that. I.E. two methods: One to stop and one to cancel/drain. Can
>> you implement this?
>
> I agree, this would also be consistent with the callout_*() API if you had
> both "stop()" and "drain()" methods.

Here's my proposed code.  Note that this builds but is not yet tested.


Implement a taskqueue_cancel(9), to cancel a task from a queue.

Requested by:       hps
Original code:      jeff
MFC after:  1 week


http://people.freebsd.org/~mdf/bsd-taskqueue-cancel.diff

Thanks,
matthew



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AANLkTim6YH7TzcEFuimVhuF9k-n5%2B%2BO5wAbKrmScRFc4>