]> err.no Git - linux-2.6/commit
[PATCH] posix-timers: use try_to_del_timer_sync()
authorOleg Nesterov <oleg@tv-sign.ru>
Thu, 23 Jun 2005 07:09:00 +0000 (00:09 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Thu, 23 Jun 2005 16:45:17 +0000 (09:45 -0700)
commitf972be33ce6a08b5f096ba013c7459a3a82f5f39
tree5d495cdfc82dce1b8017244563f2f5437c395433
parentfd450b7318b75343fd76b3d95416853e34e72c95
[PATCH] posix-timers: use try_to_del_timer_sync()

sys_timer_settime/sys_timer_delete needs to delete k_itimer->real.timer
synchronously while holding ->it_lock, which is also locked in
posix_timer_fn.

This patch removes timer_active/set_timer_inactive which plays with
timer_list's internals in favour of using try_to_del_timer_sync(), which
was introduced in the previous patch.

Signed-off-by: Oleg Nesterov <oleg@tv-sign.ru>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
kernel/posix-timers.c