https://github.com/torvalds/linux
Revision 25f407f0b668f5e4ebd5d13e1fb4306ba6427ead authored by Roland McGrath on 21 October 2005, 22:03:29 UTC, committed by Linus Torvalds on 21 October 2005, 22:38:08 UTC
When I originally moved exit_itimers into __exit_signal, that was the only
place where we could reliably know it was the last thread in the group
dying, without races.  Since then we've gotten the signal_struct.live
counter, and do_exit can reliably do group-wide cleanup work.

This patch moves the call to do_exit, where it's made without locks.  This
avoids the deadlock issues that the old __exit_signal code's comment talks
about, and the one that Oleg found recently with process CPU timers.

[ This replaces e03d13e985d48ac4885382c9e3b1510c78bd047f, which is why
  it was just reverted. ]

Signed-off-by: Roland McGrath <roland@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
1 parent 9465bee
History
Tip revision: 25f407f0b668f5e4ebd5d13e1fb4306ba6427ead authored by Roland McGrath on 21 October 2005, 22:03:29 UTC
[PATCH] Call exit_itimers from do_exit, not __exit_signal
Tip revision: 25f407f
File Mode Size
Documentation
arch
crypto
drivers
fs
include
init
ipc
kernel
lib
mm
net
scripts
security
sound
usr
.gitignore -rw-r--r-- 391 bytes
COPYING -rw-r--r-- 18.3 KB
CREDITS -rw-r--r-- 87.1 KB
Kbuild -rw-r--r-- 1.2 KB
MAINTAINERS -rw-r--r-- 59.6 KB
Makefile -rw-r--r-- 42.5 KB
README -rw-r--r-- 14.4 KB
REPORTING-BUGS -rw-r--r-- 3.0 KB

README

back to top