Commit 51229b49 authored by Rik van Riel's avatar Rik van Riel Committed by Linus Torvalds

exit,stats: /* obey this comment */

There is a helpful comment in do_exit() that states we sync the mm's RSS
info before statistics gathering.

The function that does the statistics gathering is called right above that

Change the code to obey the comment.
Signed-off-by: default avatarRik van Riel <>
Cc: Oleg Nesterov <>
Cc: Michal Hocko <>
Signed-off-by: default avatarAndrew Morton <>
Signed-off-by: default avatarLinus Torvalds <>
parent b4176b7c
......@@ -711,10 +711,10 @@ void do_exit(long code)
current->comm, task_pid_nr(current),
/* sync mm's RSS info before statistics gathering */
if (tsk->mm)
group_dead = atomic_dec_and_test(&tsk->signal->live);
if (group_dead) {
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment