summaryrefslogtreecommitdiffstats
path: root/fs/exec.c
diff options
context:
space:
mode:
authorOleg Nesterov2008-12-01 23:18:15 +0100
committerIngo Molnar2008-12-12 17:00:34 +0100
commit899921025b406a71a8aeb2d7855658ea0cf0ed23 (patch)
tree6faf12eb15231b6a430d0e1e11a4f6fcc581874e /fs/exec.c
parentposix-timers: use "struct pid*" instead of "struct task_struct*" (diff)
downloadkernel-qcow2-linux-899921025b406a71a8aeb2d7855658ea0cf0ed23.tar.gz
kernel-qcow2-linux-899921025b406a71a8aeb2d7855658ea0cf0ed23.tar.xz
kernel-qcow2-linux-899921025b406a71a8aeb2d7855658ea0cf0ed23.zip
posix-timers: check ->it_signal instead of ->it_pid to validate the timer
Impact: clean up, speed up ->it_pid (was ->it_process) has also a special meaning: if it is NULL, the timer is under deletion or it wasn't initialized yet. We can check ->it_signal != NULL instead, this way we can - simplify sys_timer_create() a bit - remove yet another check from lock_timer() - move put_pid(->it_pid) into release_posix_timer() which runs outside of ->it_lock Signed-off-by: Oleg Nesterov <oleg@tv-sign.ru> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'fs/exec.c')
0 files changed, 0 insertions, 0 deletions