]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
exit: move taskstats_tgid_free() from __exit_signal() to free_signal_struct()
authorOleg Nesterov <oleg@redhat.com>
Wed, 26 May 2010 21:43:20 +0000 (14:43 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 27 May 2010 16:12:46 +0000 (09:12 -0700)
commit97101eb41d0d3c97543878ce40e0b8a8b2747ed7
treed33299c8d4787d3b578ea432fdaceb965a2acd97
parenta705be6b5e8b05f2ae51536ec709de921960326c
exit: move taskstats_tgid_free() from __exit_signal() to free_signal_struct()

Move taskstats_tgid_free() from __exit_signal() to free_signal_struct().

This way signal->stats never points to nowhere and we can read ->stats
lockless.

Signed-off-by: Oleg Nesterov <oleg@redhat.com>
Cc: Balbir Singh <balbir@linux.vnet.ibm.com>
Cc: Roland McGrath <roland@redhat.com>
Cc: Veaceslav Falico <vfalico@redhat.com>
Cc: Stanislaw Gruszka <sgruszka@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
kernel/exit.c
kernel/fork.c