https://github.com/torvalds/linux
Revision 3de463c7d9d58f8cf3395268230cb20a4c15bffa authored by Oleg Nesterov on 24 October 2005, 10:34:03 UTC, committed by Linus Torvalds on 24 October 2005, 15:12:35 UTC
do_exit() clears ->it_##clock##_expires, but nothing prevents another cpu to attach the timer to exiting process after that. After exit_notify() does 'write_unlock_irq(&tasklist_lock)' and before do_exit() calls 'schedule() local timer interrupt can find tsk->exit_state != 0. If that state was EXIT_DEAD (or another cpu does sys_wait4) interrupted task has ->signal == NULL. At this moment exiting task has no pending cpu timers, they were cleaned up in __exit_signal()->posix_cpu_timers_exit{,_group}(), so we can just return from irq. Signed-off-by: Oleg Nesterov <oleg@tv-sign.ru> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
1 parent 108150e
Tip revision: 3de463c7d9d58f8cf3395268230cb20a4c15bffa authored by Oleg Nesterov on 24 October 2005, 10:34:03 UTC
[PATCH] posix-timers: remove false BUG_ON() from run_posix_cpu_timers()
[PATCH] posix-timers: remove false BUG_ON() from run_posix_cpu_timers()
Tip revision: 3de463c
File | Mode | Size |
---|---|---|
reed_solomon | ||
zlib_deflate | ||
zlib_inflate | ||
.gitignore | -rw-r--r-- | 51 bytes |
Kconfig | -rw-r--r-- | 1.8 KB |
Kconfig.debug | -rw-r--r-- | 6.2 KB |
Makefile | -rw-r--r-- | 1.6 KB |
bitmap.c | -rw-r--r-- | 16.1 KB |
bust_spinlocks.c | -rw-r--r-- | 931 bytes |
cmdline.c | -rw-r--r-- | 2.7 KB |
crc-ccitt.c | -rw-r--r-- | 3.0 KB |
crc16.c | -rw-r--r-- | 2.8 KB |
crc32.c | -rw-r--r-- | 15.9 KB |
crc32defs.h | -rw-r--r-- | 1.0 KB |
ctype.c | -rw-r--r-- | 1.3 KB |
dec_and_lock.c | -rw-r--r-- | 1.7 KB |
div64.c | -rw-r--r-- | 1.3 KB |
dump_stack.c | -rw-r--r-- | 290 bytes |
errno.c | -rw-r--r-- | 89 bytes |
extable.c | -rw-r--r-- | 2.1 KB |
find_next_bit.c | -rw-r--r-- | 1.1 KB |
gen_crc32table.c | -rw-r--r-- | 1.8 KB |
genalloc.c | -rw-r--r-- | 4.4 KB |
halfmd4.c | -rw-r--r-- | 2.0 KB |
idr.c | -rw-r--r-- | 9.6 KB |
inflate.c | -rw-r--r-- | 37.0 KB |
int_sqrt.c | -rw-r--r-- | 514 bytes |
iomap.c | -rw-r--r-- | 6.2 KB |
kernel_lock.c | -rw-r--r-- | 4.5 KB |
klist.c | -rw-r--r-- | 6.8 KB |
kobject.c | -rw-r--r-- | 11.1 KB |
kobject_uevent.c | -rw-r--r-- | 9.0 KB |
kref.c | -rw-r--r-- | 1.6 KB |
libcrc32c.c | -rw-r--r-- | 6.5 KB |
parser.c | -rw-r--r-- | 5.8 KB |
prio_tree.c | -rw-r--r-- | 12.2 KB |
radix-tree.c | -rw-r--r-- | 19.3 KB |
rbtree.c | -rw-r--r-- | 8.9 KB |
rwsem-spinlock.c | -rw-r--r-- | 7.5 KB |
rwsem.c | -rw-r--r-- | 6.7 KB |
semaphore-sleepers.c | -rw-r--r-- | 4.7 KB |
sha1.c | -rw-r--r-- | 2.4 KB |
smp_processor_id.c | -rw-r--r-- | 1.1 KB |
sort.c | -rw-r--r-- | 2.4 KB |
spinlock_debug.c | -rw-r--r-- | 5.8 KB |
string.c | -rw-r--r-- | 12.0 KB |
textsearch.c | -rw-r--r-- | 9.2 KB |
ts_bm.c | -rw-r--r-- | 4.9 KB |
ts_fsm.c | -rw-r--r-- | 10.5 KB |
ts_kmp.c | -rw-r--r-- | 3.9 KB |
vsprintf.c | -rw-r--r-- | 18.5 KB |
Computing file changes ...