Re: tasklet scheduled after end of rmmod

george anzinger (george@mvista.com)
Fri, 24 May 2002 10:11:33 -0700


Emmanuel Michon wrote:
>
> Hi,
>
> as far as I understand nothing prevents a scheduled tasklet to have
> Linux jump to its routine, when the routine is in a module being
> rmmod'd. How should I take care of this?
>
> Are timers safe regarding this (I mean, we can consider the timer
> function won't be called as soon as del_timer() has returned)?

No, but del_timer_sync() is. See comments in
.../kernel/timer.c

-- 
George Anzinger   george@mvista.com
High-res-timers: 
http://sourceforge.net/projects/high-res-timers/
Real time sched:  http://sourceforge.net/projects/rtsched/
Preemption patch:
http://www.kernel.org/pub/linux/kernel/people/rml
-
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/