Re: del_timer_sync needed for UP RT systems.

From: Daniel Walker
Date: Tue Apr 26 2005 - 19:51:53 EST


On Tue, 2005-04-26 at 17:34, George Anzinger wrote:
> I agree. The change to do this is to use the del_timer_sync() or the
> del_singleshot_timer() code.
>
> It is possible and desirable to be able to delete a running timer. We don't
> want to take it away from the timer call back routine, however, as that leads to
> "bad things". That is why these two del_* routines were written.


I'll defer to you on that, since I don't really know what timer people
need..

After reviewing, del_timer_sync() I don't think that will stop this
race. Because the wakeup happens before posix_timer_fn() is called in
__run_timers() .

Daniel

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/