Messages in this thread | | | Date | Thu, 28 Aug 2003 23:30:24 -0300 | From | Werner Almesberger <> | Subject | Re: tasklet_kill will always hang for recursive tasklets on a UP |
| |
kuznet@ms2.inr.ac.ru wrote: > It still holds. tasklet_kill just waits for completion of scheduled > events. Well, it _assumes_ that cpu which calls tasklet_schedule > does not try to wake the tasklet after death.
Well, the tasklet isn't dead yet - it's still running.
> But it is from area of pure scholastics already: waker and killer > have to synchronize in some way anyway.
Yes, all I'm saying is that one can't rely on tasklet_kill to make a self-rescheduling tasklet go away, which, given the name, would seem a reasonably assumption.
Also, in this case, tasklet_schedule behaves differently on SMP. So I'd suggest to resolve all this by clarifying that tasklet_schedule must not be called while tasklet_kill is executing.
- Werner
-- _________________________________________________________________________ / Werner Almesberger, Buenos Aires, Argentina wa@almesberger.net / /_http://www.almesberger.net/____________________________________________/ - 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/
| |