Re: [patch 3/4] taskstats: Introduce cdata_acct for complete cumulative accounting

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Oleg Nesterov
Date: Tuesday, November 23, 2010 - 9:59 am

On 11/19, Michael Holzheu wrote:

Looks correct at first glance. A couple of nits below.


And we already discussed this ;) We do not need 2 siglock's, only
parent's. Just move the callsite in __exit_signal() down, under
another (lockless) group_dead check.

Or I missed something?


Given that task_io_accounting is Linux specific, perhaps we can use
signal->ioac in both cases?

Yes, this is a user-visible change anyway. But, at least we can
forget about POSIX.


We can do this before taking ->siglock. Not that I think this really
matters, but otherwise this looks a bit confusing imho, as if we need
parent's ->siglock to pin something.


And thanks for splitting these changes. It was much, much easier to
read now.

Oleg.

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

Messages in current thread:
[patch 0/4] taskstats: Improve cumulative time accounting, Michael Holzheu, (Fri Nov 19, 1:11 pm)
[patch 1/4] taskstats: Introduce "struct cdata", Michael Holzheu, (Fri Nov 19, 1:11 pm)
[patch 2/4] taskstats: Introduce __account_cdata() function, Michael Holzheu, (Fri Nov 19, 1:11 pm)
Re: [patch 0/4] taskstats: Improve cumulative time accounting, Valdis.Kletnieks, (Mon Nov 22, 11:11 am)
Re: [patch 3/4] taskstats: Introduce cdata_acct for comple ..., Oleg Nesterov, (Tue Nov 23, 9:59 am)