Re: [PATCH 2.6.27-rc5] Fix itimer/many thread hang.

From: Oleg Nesterov
Date: Tue Sep 09 2008 - 12:08:35 EST


On 09/09, Oleg Nesterov wrote:
>
> So, the first CLONE_THREAD creates ->cputime.totals. After that
> thread_group_cputime_account_xxx() start to use it even if the task
> doesn't have the attached cpu timers.
>
> Stupid question: can't we allocate .totals in posix_cpu_timer_create() /
> set_process_cpu_timer() ?

Just to clarify: yes I see, .totals is also used by do_task_stat()/etc,
but they can iterate over sub-threads as before.

And my apologies if this was already discussed ;)

Oleg.

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/