mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Jean Tourrilhes <jt@bougret.hpl.hp.com>
To: "Richard B. Johnson" <root@chaos.analogic.com>
Cc: Linux kernel mailing list <linux-kernel@vger.kernel.org>
Subject: Re: Killing tasklet from interrupt
Date: Mon, 18 Mar 2002 12:57:43 -0800	[thread overview]
Message-ID: <20020318125743.A26532@bougret.hpl.hp.com> (raw)
In-Reply-To: <20020318115313.A26490@bougret.hpl.hp.com> <Pine.LNX.3.95.1020318153650.29558B-100000@chaos.analogic.com>

On Mon, Mar 18, 2002 at 03:38:29PM -0500, Richard B. Johnson wrote:
> 
> You have the tasklet kill itself the next time it executes. Set some
> flag so it knows it should give up its timer-slot and expire. The
> interrupt sets the flag. It doesn't do anything else.

	I already have this flag and my code mostly work like this, so
that would be trivial to do.
	I looked at the code, and you are right, killing the tasklet
within itself is by far the safest way to do it. It's a shame that the
code doesn't explitely allow for it (i.e. you will deadlock every time
in tasklet_unlock_wait(t);).

	Thanks, and have fun...

	Jean

  reply	other threads:[~2002-03-18 20:58 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-03-18 19:53 Jean Tourrilhes
2002-03-18 20:38 ` Richard B. Johnson
2002-03-18 20:57   ` Jean Tourrilhes [this message]
2002-03-18 23:20     ` Maksim Krasnyanskiy
2002-03-18 23:33       ` Jean Tourrilhes
2002-03-19 19:41         ` Maksim Krasnyanskiy
2002-03-22 17:56           ` Maksim Krasnyanskiy

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=20020318125743.A26532@bougret.hpl.hp.com \
    --to=jt@bougret.hpl.hp.com \
    --cc=jt@hpl.hp.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=root@chaos.analogic.com \
    /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

all inboxes | Powered by JetHome®