summaryrefslogtreecommitdiffstats
path: root/Documentation/video4linux
diff options
context:
space:
mode:
authorOleg Nesterov <oleg@tv-sign.ru>2008-09-22 23:42:48 +0200
committerThomas Gleixner <tglx@linutronix.de>2008-09-24 15:45:48 +0200
commit36b2f046000b358b62b9d116cb10a2b1c5be5cbf (patch)
tree577f367d2408d6ed2618d49f412afa91bcb915e8 /Documentation/video4linux
parentposix-timers: sys_timer_create: remove the buggy PF_EXITING check (diff)
downloadlinux-36b2f046000b358b62b9d116cb10a2b1c5be5cbf.tar.xz
linux-36b2f046000b358b62b9d116cb10a2b1c5be5cbf.zip
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/video4linux')
0 files changed, 0 insertions, 0 deletions