Messages in this thread | | | Date | Mon, 18 Mar 2002 15:20:50 -0800 | From | Maksim Krasnyanskiy <> | Subject | Re: Killing tasklet from interrupt |
| |
> > 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. Sounds like what you need is tasklet_disable. tasklet_kill needs process context so you can't use it in timer.
>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);). Use tasklet_disable_nosync within the tasklet itself.
Max
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |