Files
linux/kernel
Oleg Nesterov 5a51b713cc posix-timers: lock_timer: kill the bogus ->it_id check
lock_timer() checks that the timer found by idr_find(timer_id) has ->it_id
== timer_id.  This buys nothing.  This check can fail only if
sys_timer_create() unlocked idr_lock after idr_get_new(), but didn't set
->it_id = new_timer_id yet.  But in that case ->it_process == NULL so
lock_timer() can't succeed anyway.

Also remove a couple of unneeded typecasts.

Note that with or without this patch we have a small problem. 
sys_timer_create() doesn't ensure that the result of setting (say)
->it_sigev_notify must be visible if lock_timer() succeeds.

Signed-off-by: Oleg Nesterov <oleg@tv-sign.ru>
Cc: mingo@elte.hu
Cc: Roland McGrath <roland@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
2008-09-24 15:45:48 +02:00
..
2008-07-28 23:32:00 +02:00
2008-09-14 16:25:35 +02:00
2008-07-26 20:53:20 -04:00
2008-09-14 16:25:35 +02:00
2008-09-23 13:38:44 +02:00
2008-09-14 16:25:35 +02:00
2008-07-28 14:37:38 +02:00
2008-08-01 08:39:35 -05:00
2008-07-26 12:00:09 -07:00
2008-08-13 12:55:10 +02:00
2008-09-02 19:21:40 -07:00
2008-08-25 17:39:57 +02:00
2008-09-14 16:25:35 +02:00
2008-09-14 16:25:35 +02:00
2008-09-14 16:25:35 +02:00
2008-07-25 10:53:45 -07:00
2008-04-30 08:29:53 -07:00