lkml.org 
[lkml]   [2009]   [Aug]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] cpusets: rework guarantee_online_cpus() to fix deadlock with cpu_down()
Oleg Nesterov wrote:

>
> - do NOT scan cs->parent cpusets. If there are no online CPUs in
> cs->cpus_allowed, we use cpu_online_mask. This is only possible
> when we are called by cpu_down() hooks, in that case
> cpuset_track_online_cpus(CPU_DEAD) will fix things later.
>


We must scan cs->parent cpusets.
A task is constrained by a cpuset, it must be constrained
this cpuset's parent too.

cpuset_lock() is not awful at all.

Lai.




\
 
 \ /
  Last update: 2009-08-02 04:21    [W:0.152 / U:0.008 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site