From: Duncan Sands <duncan.sands@math.u-psud.fr>
To: Mathijs Mohlmann <mathijs@knoware.nl>
Cc: linux-kernel@vger.kernel.org
Subject: Re: tasklets and finalization
Date: Mon, 12 Nov 2001 09:21:18 +0100 [thread overview]
Message-ID: <E163CLH-0000J4-00@baldrick> (raw)
In-Reply-To: <XFMail.20011112085704.mathijs@knoware.nl>
In-Reply-To: <XFMail.20011112085704.mathijs@knoware.nl>
On Monday 12 November 2001 8:57 am, you wrote:
> On 11-Nov-2001 Duncan Sands wrote:
> > PS: My first thought was to use tasklet_kill, but according
> > to "Linux device drivers" (2nd ed) that may hang if the
> > tasklet isn't pending.
>
> true.
>
> > PPS: Another thought was to call schedule(), hoping that
> > all pending asklets will get run then, but is that reliable?
>
> if you are sure, the tasklet isn't rescheduled within the tasklet
> i THINK this will do it:
>
> current->policy |= SCHED_YIELD;
> schedule();
>
> me
Thanks for thinking about this. Here's a thought:
...
tasklet_schedule(&my_tasklet);
tasklet_kill(&my_tasklet);
...
Since (as far as I can see) there is no way the
tasklet will run before calling tasklet_kill, this
should just kill any pending tasklets.
Duncan.
next parent reply other threads:[~2001-11-12 8:22 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <XFMail.20011112085704.mathijs@knoware.nl>
2001-11-12 8:21 ` Duncan Sands [this message]
2001-11-12 8:35 ` tasklets and finalization Mathijs Mohlmann
2001-11-12 8:41 ` Duncan Sands
2001-11-11 14:34 Duncan Sands
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=E163CLH-0000J4-00@baldrick \
--to=duncan.sands@math.u-psud.fr \
--cc=linux-kernel@vger.kernel.org \
--cc=mathijs@knoware.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox