]> Git Repo - linux.git/commitdiff
exit,stats: /* obey this comment */
authorRik van Riel <[email protected]>
Thu, 25 Jun 2015 22:03:56 +0000 (15:03 -0700)
committerLinus Torvalds <[email protected]>
Fri, 26 Jun 2015 00:00:43 +0000 (17:00 -0700)
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 <[email protected]>
Cc: Oleg Nesterov <[email protected]>
Cc: Michal Hocko <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
kernel/exit.c

index 185752a729f6657fb9e83c54c609cb145760bbe9..031325e9acf90a0d87184fd3ed0acc5e0ec0b956 100644 (file)
@@ -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);
This page took 0.060051 seconds and 4 git commands to generate.