Re: [PATCH] cpusets: rework guarantee_online_cpus() to fix deadlock with cpu_down()

Oleg Nesterov
2009-08-01T05:42:39Z

Sorry for noise, forgot to mention...

On 08/01, Oleg Nesterov wrote:
>
> - adds cpuset->cpumask_lock, this lock is taken by
> update_cpumask() around cpumask_copy(cs->cpus_allowed, newcpus).

Most probably there are other places where ->cpus_allowed is changed,
in that case they need ->cpumask_lock too. But this is trivial, the
patch I sent just explains what I meant.

Oleg.