[PATCH] posix-timers: fix task accounting
authorOleg Nesterov <oleg@tv-sign.ru>
Mon, 17 Oct 2005 14:49:42 +0000 (18:49 +0400)
committerLinus Torvalds <torvalds@g5.osdl.org>
Mon, 17 Oct 2005 22:00:00 +0000 (15:00 -0700)
commit47d6b08334a43fafa61a587f721fa21ef65d81be
tree57e9082d0011a4ada210878be2b90c2ede14451a
parent6ce969171d5187f7621be68c0ebbc7fb02ec53f1
[PATCH] posix-timers: fix task accounting

Make sure we release the task struct properly when releasing pending
timers.

release_task() does write_lock_irq(&tasklist_lock), so it can't race
with run_posix_cpu_timers() on any cpu.

Signed-off-by: Oleg Nesterov <oleg@tv-sign.ru>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
kernel/posix-cpu-timers.c