[lkml]   [2002]   [Mar]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: Killing tasklet from interrupt
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...

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2005-03-22 13:21    [W:0.060 / U:1.432 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site