aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRik van Riel <riel@redhat.com>2015-06-05 15:03:46 +1000
committerMichael Ellerman <mpe@ellerman.id.au>2015-06-05 15:03:46 +1000
commite9cb6d51c1ed67e41e756eb1fe3ef38efae41045 (patch)
treeeceeb9d55a84e496d995f20196a38888c55f607a
parent9ca8ef428587e5e93a038144e6b9281402e4f3a0 (diff)
downloadlinux-next-e9cb6d51c1ed67e41e756eb1fe3ef38efae41045.tar.gz
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 comment. Change the code to obey the comment. Signed-off-by: Rik van Riel <riel@redhat.com> Cc: Oleg Nesterov <oleg@redhat.com> Cc: Michal Hocko <mhocko@suse.cz> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
-rw-r--r--kernel/exit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/exit.c b/kernel/exit.c
index 185752a729f665..031325e9acf90a 100644
--- a/kernel/exit.c
+++ b/kernel/exit.c
@@ -711,10 +711,10 @@ void do_exit(long code)
current->comm, task_pid_nr(current),
preempt_count());
- acct_update_integrals(tsk);
/* sync mm's RSS info before statistics gathering */
if (tsk->mm)
sync_mm_rss(tsk->mm);
+ acct_update_integrals(tsk);
group_dead = atomic_dec_and_test(&tsk->signal->live);
if (group_dead) {
hrtimer_cancel(&tsk->signal->real_timer);