summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorRik van Riel <riel@redhat.com>2014-08-15 16:05:36 -0400
committerIngo Molnar <mingo@kernel.org>2014-09-08 08:17:00 +0200
commit90ed9cbe765ad358b3151a12b8bf889a3cbcd573 (patch)
tree4c0e144c98d2c4822d1308166eb94de3c70c647f /tools
parente2627dce268024aff962132057cb8acb219c9c40 (diff)
downloadop-kernel-dev-90ed9cbe765ad358b3151a12b8bf889a3cbcd573.zip
op-kernel-dev-90ed9cbe765ad358b3151a12b8bf889a3cbcd573.tar.gz
exit: Always reap resource stats in __exit_signal()
Oleg pointed out that wait_task_zombie adds a task's usage statistics to the parent's signal struct, but the task's own signal struct should also propagate the statistics at exit time. This allows thread_group_cputime(reaped_zombie) to get the statistics after __unhash_process() has made the task invisible to for_each_thread, but before the thread has actually been rcu freed, making sure no non-monotonic results are returned inside that window. Suggested-by: Oleg Nesterov <oleg@redhat.com> Signed-off-by: Rik van Riel <riel@redhat.com> Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Cc: Andrew Morton <akpm@linux-foundation.org> Cc: David Rientjes <rientjes@google.com> Cc: Guillaume Morin <guillaume@morinfr.org> Cc: Ionut Alexa <ionut.m.alexa@gmail.com> Cc: Linus Torvalds <torvalds@linux-foundation.org> Cc: Li Zefan <lizefan@huawei.com> Cc: Michal Hocko <mhocko@suse.cz> Cc: Michal Schmidt <mschmidt@redhat.com> Cc: Oleg Nesterov <oleg@redhat.com> Cc: umgwanakikbuti@gmail.com Cc: fweisbec@gmail.com Cc: srao@redhat.com Cc: lwoodman@redhat.com Cc: atheurer@redhat.com Link: http://lkml.kernel.org/r/1408133138-22048-2-git-send-email-riel@redhat.com Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud