The patch titled fill_tgid: cleanup delays accounting has been added to the -mm tree. Its filename is fill_tgid-cleanup-delays-accounting.patch See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find out what to do about this ------------------------------------------------------ Subject: fill_tgid: cleanup delays accounting From: Oleg Nesterov <oleg@xxxxxxxxxx> fill_tgid() should skip not only an already exited group leader. If the task has ->exit_state != 0 it already did exit_notify(), so it also did fill_tgid_exit()->delayacct_add_tsk(->signal->stats) and we should skip it to avoid a double accounting. This patch doesn't close the race completely, but it cleanups the code. Signed-off-by: Oleg Nesterov <oleg@xxxxxxxxxx> Cc: Shailabh Nagar <nagar@xxxxxxxxxxxxxx> Cc: Balbir Singh <balbir@xxxxxxxxxx> Cc: Jay Lan <jlan@xxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxx> --- kernel/taskstats.c | 2 +- 1 files changed, 1 insertion(+), 1 deletion(-) diff -puN kernel/taskstats.c~fill_tgid-cleanup-delays-accounting kernel/taskstats.c --- a/kernel/taskstats.c~fill_tgid-cleanup-delays-accounting +++ a/kernel/taskstats.c @@ -235,7 +235,7 @@ static int fill_tgid(pid_t tgid, struct tsk = first; do { - if (tsk->exit_state == EXIT_ZOMBIE && thread_group_leader(tsk)) + if (tsk->exit_state) continue; /* * Accounting subsystem can call its functions here to _ Patches currently in -mm which might be from oleg@xxxxxxxxxx are fill_tgid-fix-task_struct-leak-and-possible-oops.patch bacct_add_tsk-fix-unsafe-and-wrong-parent-group_leader-dereference.patch taskstats_tgid_free-fix-usage.patch taskstats_tgid_alloc-optimization.patch taskstats-kill-taskstats_lock-in-favor-of-siglock.patch taskstats-dont-use-tasklist_lock.patch fill_tgid-cleanup-delays-accounting.patch tty-signal-tty-locking.patch do_task_stat-dont-take-tty_mutex.patch do_acct_process-dont-take-tty_mutex.patch trivial-make-set_special_pids-static.patch sys_unshare-remove-a-broken-clone_sighand-code.patch add-process_session-helper-routine-deprecate-old-field-tidy-2.patch sys_setpgid-eliminate-unnecessary-do_each_task_pidpidtype_pgid.patch session_of_pgrp-kill-unnecessary-do_each_task_pidpidtype_pgid.patch pidhash-temporary-debug-checks.patch - To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html