From: Oleg Nesterov Date: Mon, 1 Dec 2008 22:18:15 +0000 (-0800) Subject: posix-timers: check ->it_signal instead of ->it_pid to validate the timer X-Git-Tag: v2.6.29-rc1~571^2^7~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=899921025b406a71a8aeb2d7855658ea0cf0ed23;p=pandora-kernel.git 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 Signed-off-by: Andrew Morton Signed-off-by: Thomas Gleixner --- Reading git-diff-tree failed