* tasklet scheduled after end of rmmod
@ 2002-05-24 13:34 Emmanuel Michon
2002-05-24 17:11 ` george anzinger
2002-05-27 10:15 ` Ingo Oeser
0 siblings, 2 replies; 3+ messages in thread
From: Emmanuel Michon @ 2002-05-24 13:34 UTC (permalink / raw)
To: linux-kernel
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)?
Sincerely yours,
--
Emmanuel Michon
Chef de projet
REALmagic France SAS
Mobile: 0614372733 GPGkeyID: D2997E42
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: tasklet scheduled after end of rmmod
2002-05-24 13:34 tasklet scheduled after end of rmmod Emmanuel Michon
@ 2002-05-24 17:11 ` george anzinger
2002-05-27 10:15 ` Ingo Oeser
1 sibling, 0 replies; 3+ messages in thread
From: george anzinger @ 2002-05-24 17:11 UTC (permalink / raw)
To: Emmanuel Michon; +Cc: linux-kernel
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: tasklet scheduled after end of rmmod
2002-05-24 13:34 tasklet scheduled after end of rmmod Emmanuel Michon
2002-05-24 17:11 ` george anzinger
@ 2002-05-27 10:15 ` Ingo Oeser
1 sibling, 0 replies; 3+ messages in thread
From: Ingo Oeser @ 2002-05-27 10:15 UTC (permalink / raw)
To: Emmanuel Michon; +Cc: linux-kernel
On Fri, May 24, 2002 at 03:34:27PM +0200, Emmanuel Michon wrote:
> 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?
tasklet_kill() in your module_exit() code looks like it does the
job.
Regards
Ingo Oeser
--
Science is what we can tell a computer. Art is everything else. --- D.E.Knuth
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2002-05-27 10:46 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-05-24 13:34 tasklet scheduled after end of rmmod Emmanuel Michon
2002-05-24 17:11 ` george anzinger
2002-05-27 10:15 ` Ingo Oeser
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox