Prev: Run interrupt handlers always with interrupts disabled
Next: [PATCH] Netfilter: Fix some coding styles and remove moduleparam.h
From: Balbir Singh on 26 Mar 2010 00:00 * Oleg Nesterov <oleg(a)redhat.com> [2010-03-24 21:45:50]: > do_task_stat()->task_times() can race with getrusage(), they both can > try to update task->prev_Xtime at the same time. > > Remove this bit of d180c5bc "sched: Introduce task_times() to replace > task_{u,s}time()". One of the reasons for adding this accuracy was to avoid sampling based noise and errors that occur with utime and stime. As long as there is no preemption during the assignment, I think we should be OK. I see two options 1. Disable preemption around assignment 2. Remove task_times() from getrusage() -- Three Cheers, Balbir -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo(a)vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/ |