From: Frederic Weisbecker When we read a process's procfs stat file, we need to flush the cputimes of the tasks running in nohz cpusets in case some childs in the thread group are running there. Signed-off-by: Frederic Weisbecker Cc: Alessio Igor Bogani Cc: Andrew Morton Cc: Avi Kivity Cc: Chris Metcalf Cc: Christoph Lameter Cc: Daniel Lezcano Cc: Geoff Levand Cc: Gilad Ben Yossef Cc: Hakan Akkan Cc: Ingo Molnar Cc: Kevin Hilman Cc: Max Krasnyansky Cc: Paul E. McKenney Cc: Peter Zijlstra Cc: Stephen Hemminger Cc: Steven Rostedt Cc: Sven-Thorsten Dietrich Cc: Thomas Gleixner --- fs/proc/array.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fs/proc/array.c b/fs/proc/array.c index c1c207c..f7e1fdc 100644 --- a/fs/proc/array.c +++ b/fs/proc/array.c @@ -406,6 +406,8 @@ static int do_task_stat(struct seq_file *m, struct pid_namespace *ns, cutime = cstime = utime = stime = 0; cgtime = gtime = 0; + /* For thread group times */ + cpuset_nohz_flush_cputimes(); if (lock_task_sighand(task, &flags)) { struct signal_struct *sig = task->signal; -- 1.7.10.4 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/