Re: kernel timer races

From: Alan Cox (alan@lxorguk.ukuu.org.uk)
Date: Fri May 26 2000 - 11:11:06 EST


> Sure. But del_timer() + wait_on_timers() + dont-re-add-flag ==
> del_timer_sync()?

Yep - just remember to check mod_timer too for the flag

> The problem is, in many of the above cases I simply replaced del_timer
> with del_timer_async, so the races which some of the above files have
> will remain in place. But the potential problems are identified and I
> can now bug people :).

Where you did this and there were problems did you add a #warning or comment ?

> 1: Give del_timer synchronous semantics and patch the
> above 25 files or

#1 is ok providing it has good debugging and barfs loudly on a potential
deadlock

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



This archive was generated by hypermail 2b29 : Wed May 31 2000 - 21:00:16 EST