1
0
Files
linux/kernel
Oleg Nesterov 36b2f04600 posix-timers: sys_timer_create: simplify and s/tasklist/rcu/
- Change the code to do rcu_read_lock() instead of taking tasklist_lock,
  it is safe to get_task_struct(p) if p was found under RCU.

  However, now we must not use process's sighand/signal, they may be NULL.
  We can use current->sighand/signal instead, this "process" must belong
  to the current's thread-group.

- Factor out the common code for 2 "if (timer_event_spec)" branches, the
  !timer_event_spec case can use current too.

- use spin_lock_irq() instead of _irqsave(), kill "flags".

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