diff options
author | Oleg Nesterov <oleg@tv-sign.ru> | 2008-09-22 14:42:48 -0700 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2008-09-24 15:45:48 +0200 |
commit | 36b2f046000b358b62b9d116cb10a2b1c5be5cbf (patch) | |
tree | 577f367d2408d6ed2618d49f412afa91bcb915e8 /Documentation/m68k/00-INDEX | |
parent | 2cd499e38ec241691e4bce50bddc8f57e4cc9bd0 (diff) |
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>
Diffstat (limited to 'Documentation/m68k/00-INDEX')
0 files changed, 0 insertions, 0 deletions