https://github.com/torvalds/linux
Revision f53ae1dc3429529a58aa538e0a860d713c7079c3 authored by Oleg Nesterov on 15 June 2006, 16:12:02 UTC, committed by Linus Torvalds on 17 June 2006, 17:52:13 UTC
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 <oleg@tv-sign.ru>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
1 parent 30f1e3d
History
Tip revision: f53ae1dc3429529a58aa538e0a860d713c7079c3 authored by Oleg Nesterov on 15 June 2006, 16:12:02 UTC
[PATCH] arm_timer: remove a racy and obsolete PF_EXITING check
Tip revision: f53ae1d
File Mode Size
Documentation
arch
block
crypto
drivers
fs
include
init
ipc
kernel
lib
mm
net
scripts
security
sound
usr
.gitignore -rw-r--r-- 462 bytes
COPYING -rw-r--r-- 18.3 KB
CREDITS -rw-r--r-- 87.4 KB
Kbuild -rw-r--r-- 1.2 KB
MAINTAINERS -rw-r--r-- 68.9 KB
Makefile -rw-r--r-- 43.7 KB
README -rw-r--r-- 16.2 KB
REPORTING-BUGS -rw-r--r-- 3.0 KB

README

back to top