Re: [RFC,PATCH 1/2] cputimers/proc: do_task_stat()->task_times() can race with getrusage()

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Oleg Nesterov
Date: Monday, March 29, 2010 - 5:54 am

On 03/29, Stanislaw Gruszka wrote:

Yes, and we should avoid overloading ->siglock if possible.


Sure,


I don't think so. update_curr/etc updates t->se.sum_exec_runtime without
->siglock, it can't help to read u64 values atomically.


Please see above. This is what should be avoided.


Yes sure. I dislike the do_task_stat() case because we always do this,
even if this info is not needed, say, for /bin/ps.

Oleg.

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [RFC,PATCH 1/2] cputimers/proc: do_task_stat()->task_t ..., Oleg Nesterov, (Mon Mar 29, 5:54 am)
Re: [PATCH -mm 2/4] cputimers: make sure thread_group_cput ..., Stanislaw Gruszka, (Tue Mar 30, 4:01 am)