[PATCH 1/5] timers: prepare for del_timer_sync() changes

2005-03-19 Thread Oleg Nesterov
There are problems with del_timer_sync(). 1. Scalability. All cpus are scanned to determine if the timer is running on that cpu. 2. It is racy. The timer can be fired again after del_timer_sync have checked all cpus and before it will recheck timer_pending(). This patch adds 'pending flag' to

[PATCH 1/5] timers: prepare for del_timer_sync() changes

2005-03-19 Thread Oleg Nesterov
There are problems with del_timer_sync(). 1. Scalability. All cpus are scanned to determine if the timer is running on that cpu. 2. It is racy. The timer can be fired again after del_timer_sync have checked all cpus and before it will recheck timer_pending(). This patch adds 'pending flag' to