timer: Del_timer_sync() can be used in softirq context
authorYong Zhang <yong.zhang@windriver.com>
Wed, 20 Oct 2010 22:57:32 +0000 (15:57 -0700)
committerThomas Gleixner <tglx@linutronix.de>
Fri, 22 Oct 2010 12:46:25 +0000 (14:46 +0200)
commit1118e2cd33d47254854e1ba3ba8e32802ff14fdf
tree09bb7b87d78ecfa542a419640f36505fac11fb79
parent6f1bc451e6a79470b122a37ee1fc6bbca450f444
timer: Del_timer_sync() can be used in softirq context

Actually we have used del_timer_sync() in softirq context for a long time,
e.g. in __dst_free()::cancel_delayed_work().

So change the comments of it to warn on hardirq context only, and make
lockdep know about this change.

Signed-off-by: Yong Zhang <yong.zhang0@gmail.com>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Oleg Nesterov <oleg@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
kernel/timer.c