[PATCH 4/5] timers: remove memory barriers

2005-03-19 Thread Oleg Nesterov
del_timer() and __run_timers() use smp_wmb() before clearing timer's pending flag. It was needed because __mod_timer() did not locked old_base if the timer is not pending, so __mod_timer()->internal_add_timer() can race with del_timer()->list_del(). With the previous patch these functions are

[PATCH 4/5] timers: remove memory barriers

2005-03-19 Thread Oleg Nesterov
del_timer() and __run_timers() use smp_wmb() before clearing timer's pending flag. It was needed because __mod_timer() did not locked old_base if the timer is not pending, so __mod_timer()-internal_add_timer() can race with del_timer()-list_del(). With the previous patch these functions are