From: Oleg Nesterov Date: Thu, 15 Jun 2006 16:12:02 +0000 (+0400) Subject: [PATCH] arm_timer: remove a racy and obsolete PF_EXITING check X-Git-Tag: v2.6.17~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f53ae1dc3429529a58aa538e0a860d713c7079c3;p=pandora-kernel.git [PATCH] arm_timer: remove a racy and obsolete PF_EXITING check arm_timer() checks PF_EXITING to prevent BUG_ON(->exit_state) in run_posix_cpu_timers(). However, for some reason it does so only for CPUCLOCK_PERTHREAD case (which is imho wrong). Also, this check is not reliable, PF_EXITING could be set on another cpu without any locks/barriers just after the check, so it can't prevent from attaching the timer to the exiting task. The previous patch makes this check unneeded. Signed-off-by: Oleg Nesterov Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed