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-08-12 16:07:30 -07:00
2008-08-28 12:27:39 -07:00
2008-09-09 22:20:01 +02:00
2008-07-28 23:32:00 +02:00
2008-07-25 10:53:47 -07:00
2008-05-17 03:30:23 -04:00
2008-08-01 12:15:16 -04:00
2008-04-28 06:28:04 -04:00
2008-08-01 12:15:03 -04:00
2008-09-01 23:06:45 -04:00
2008-06-27 18:09:16 +02:00
2008-04-29 08:06:29 -07:00
2008-08-14 22:59:43 +10:00
2008-04-29 08:06:09 -07:00
2008-07-30 09:41:44 -07:00
2008-09-14 16:25:35 +02:00
2008-04-29 08:06:22 -07:00
2008-08-12 16:07:28 -07:00
2008-09-13 14:41:50 -07:00
2008-07-25 10:53:47 -07:00
2008-08-07 06:52:01 -07:00
2008-04-29 08:06:22 -07: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-06-23 13:31:15 +02:00
2008-07-15 21:55:59 +02:00
2008-09-14 16:25:35 +02:00
2008-07-25 10:53:27 -07:00
2008-07-28 14:37:38 +02:00
2008-08-15 08:35:43 -07:00
2008-08-01 08:39:35 -05:00
2008-07-25 10:53:28 -07:00
2008-07-25 10:53:30 -07:00
2008-07-26 12:00:09 -07:00
2008-04-29 08:06:22 -07:00
2008-08-13 12:55:10 +02:00
2008-08-26 10:37:46 +02:00
2008-08-27 08:40:36 +02:00
2008-07-29 00:07:55 +02:00
2008-07-30 09:41:45 -07:00
2008-08-25 11:10:26 -07:00
2008-05-16 16:53:35 +02:00
2008-07-28 18:12:36 +02:00
2008-04-29 08:06:13 -07:00
2008-07-25 10:53:37 -07:00
2008-08-23 12:14:12 -07:00
2008-07-25 10:53:29 -07:00
2008-09-02 19:21:38 -07:00
2008-07-25 10:53:45 -07:00
2008-09-02 19:21:40 -07:00
2008-09-23 13:38:44 +02:00
2008-09-24 15:45:48 +02:00
2008-07-30 09:41:45 -07:00
2008-07-25 10:53:27 -07:00
2008-08-14 22:59:43 +10:00
2008-07-28 12:16:31 +10:00
2008-08-21 09:31:44 +02:00
2008-05-19 10:03:39 +02:00
2008-07-16 00:29:07 +02:00
2008-06-26 09:24:33 +02:00
2008-08-05 14:33:46 -07:00
2008-07-25 10:53:36 -07:00
2008-09-02 10:47:30 -07:00
2008-07-21 21:55:02 -07:00
2008-08-25 17:39:57 +02:00
2008-06-06 15:19:28 +02:00
2008-06-06 15:19:44 +02:00
2008-06-27 14:31:31 +02:00
2008-09-14 16:25:35 +02:00
2008-08-21 08:18:02 +02:00
2008-05-05 23:56:17 +02:00
2008-09-14 16:25:35 +02:00
2008-09-23 13:38:44 +02:00
2008-09-23 13:38:44 +02:00
2008-08-05 14:33:47 -07:00
2008-09-14 16:25:35 +02:00
2008-08-25 17:45:48 -07:00
2008-07-26 12:00:04 -07:00
2008-09-02 10:49:51 -07:00
2008-08-13 13:56:51 +02:00
2008-06-30 09:20:55 +02:00
2008-08-12 17:52:55 +10:00
2008-07-25 11:35:41 -07:00
2008-09-14 16:25:35 +02:00
2008-07-25 10:53:45 -07:00
2008-09-04 11:06:21 -07:00
2008-07-25 10:53:47 -07:00
2008-05-02 16:18:42 -07:00
2008-05-02 16:18:42 -07:00
2008-07-14 16:06:58 -07:00
2008-07-27 16:12:28 -07:00
2008-08-23 12:14:12 -07:00
2008-04-30 08:29:53 -07:00
2008-08-23 12:14:12 -07:00
2008-08-23 12:14:12 -07:00
2008-08-12 00:11:49 +02:00