aboutsummaryrefslogtreecommitdiff
path: root/net/lapb/lapb_out.c
diff options
context:
space:
mode:
authorOleg Nesterov <[email protected]>2008-09-22 14:42:48 -0700
committerThomas Gleixner <[email protected]>2008-09-24 15:45:48 +0200
commit36b2f046000b358b62b9d116cb10a2b1c5be5cbf (patch)
tree577f367d2408d6ed2618d49f412afa91bcb915e8 /net/lapb/lapb_out.c
parent2cd499e38ec241691e4bce50bddc8f57e4cc9bd0 (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 <[email protected]> Cc: [email protected] Cc: Roland McGrath <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Thomas Gleixner <[email protected]>
Diffstat (limited to 'net/lapb/lapb_out.c')
0 files changed, 0 insertions, 0 deletions