diff options
Diffstat (limited to 'kernel/exit.c')
-rw-r--r-- | kernel/exit.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/kernel/exit.c b/kernel/exit.c index d9eab2e4b43..94ed6e20bb5 100644 --- a/kernel/exit.c +++ b/kernel/exit.c | |||
@@ -51,6 +51,7 @@ | |||
51 | #include <trace/events/sched.h> | 51 | #include <trace/events/sched.h> |
52 | #include <linux/hw_breakpoint.h> | 52 | #include <linux/hw_breakpoint.h> |
53 | #include <linux/oom.h> | 53 | #include <linux/oom.h> |
54 | #include <linux/writeback.h> | ||
54 | 55 | ||
55 | #include <asm/uaccess.h> | 56 | #include <asm/uaccess.h> |
56 | #include <asm/unistd.h> | 57 | #include <asm/unistd.h> |
@@ -1035,6 +1036,8 @@ NORET_TYPE void do_exit(long code) | |||
1035 | validate_creds_for_do_exit(tsk); | 1036 | validate_creds_for_do_exit(tsk); |
1036 | 1037 | ||
1037 | preempt_disable(); | 1038 | preempt_disable(); |
1039 | if (tsk->nr_dirtied) | ||
1040 | __this_cpu_add(dirty_throttle_leaks, tsk->nr_dirtied); | ||
1038 | exit_rcu(); | 1041 | exit_rcu(); |
1039 | /* causes final put_task_struct in finish_task_switch(). */ | 1042 | /* causes final put_task_struct in finish_task_switch(). */ |
1040 | tsk->state = TASK_DEAD; | 1043 | tsk->state = TASK_DEAD; |