diff options
| author | Rik van Riel <riel@redhat.com> | 2015-06-25 15:03:56 -0700 |
|---|---|---|
| committer | Moyster <oysterized@gmail.com> | 2019-05-02 18:29:21 +0200 |
| commit | c1835fd859ab1e079a2e644d8174b1c1b80a50fe (patch) | |
| tree | f2cb993f0d7af0b38b730bb65cd3c2499e779642 /kernel/exit.c | |
| parent | 5c3e24ce671878718e4869939fc23d9a69fda334 (diff) | |
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.
Change-Id: I6065ff9005dbd3e41730b66437db500520e8b70f
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>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'kernel/exit.c')
| -rw-r--r-- | kernel/exit.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/exit.c b/kernel/exit.c index 1cfc63b9d..e17cd66b3 100644 --- a/kernel/exit.c +++ b/kernel/exit.c @@ -751,10 +751,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); |
