All of lore.kernel.org
 help / color / mirror / Atom feed
* del_timer_sync needed for UP  RT systems.
@ 2005-04-26 23:42 George Anzinger
  2005-04-26 23:55 ` Daniel Walker
  0 siblings, 1 reply; 7+ messages in thread
From: George Anzinger @ 2005-04-26 23:42 UTC (permalink / raw)
  To: ingo; +Cc: linux-kernel@vger.kernel.org

Ingo,

In tracking down the failure of a system running the RT patch we have found a 
preemption between the time run_timer_list clears its spinlock and the call back 
function (in this case in posix-timers.c) gets its spinlock.  The bad news is 
that it is possible for the timer to be released at this point leaving the call 
back code with a pointer to a bogus timer.

This was/is possible, of course, in SMP systems and is why del_timer_sync() 
exists.  I suspect that del_timer_sync() needs to also do the "right thing" in 
UP RT systems.

This means removing the #ifdef CONFIG_SMP at about line 56 of kernel/timer.c 
thus setting up base->running_timer in all cases (or at least in SMP and RT 
cases) and also the #ifdef CONFIG_SMP around del_timer_sync() and, of course, 
the defines that redirect calls to these functions.

Does this make sense?
-- 
George Anzinger   george@mvista.com
High-res-timers:  http://sourceforge.net/projects/high-res-timers/

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2005-04-27  0:50 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-04-26 23:42 del_timer_sync needed for UP RT systems George Anzinger
2005-04-26 23:55 ` Daniel Walker
2005-04-27  0:14   ` George Anzinger
2005-04-27  0:24     ` Daniel Walker
2005-04-27  0:30       ` Daniel Walker
2005-04-27  0:34       ` George Anzinger
2005-04-27  0:50         ` Daniel Walker

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.