posix-timers: always do get_task_struct(timer->it_process)
authorOleg Nesterov <oleg@tv-sign.ru>
Mon, 22 Sep 2008 21:42:46 +0000 (14:42 -0700)
committerThomas Gleixner <tglx@linutronix.de>
Wed, 24 Sep 2008 13:45:47 +0000 (15:45 +0200)
commit918fc0372831dca73039e1577bfea0c2ce49bdb6
treec8c11b7929fc0f0768109679a3733dd3eb6741c6
parent4aa7361179bed905fd0f35b236a5c65db683b9e0
posix-timers: always do get_task_struct(timer->it_process)

Change the code to get/put timer->it_process regardless of
SIGEV_THREAD_ID.  This streamlines the create/destroy paths and allows us
to simplify the usage of exit_itimers() in de_thread().

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>
kernel/posix-timers.c