lkml.org 
[lkml]   [2009]   [Jul]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] cpu_hotplug: don't affect current task's affinity
Andrew Morton wrote:

>
> Or are you saying that the mask _should_ have been 0-1,3 but the kernel
> incorrectly set it to "0"?
>

Yes, the mask should become 0-1,3. when original is 2 after cpu2 is offlined.

When cpu2 is offined

original mask after cpu2 is offined
1 1
1-2 1
0-3 0-1,3
2 0-1,3
2(the task who do the offline) 0

I think the last line is incorrect. This patch fix it.


>
> Also, it says "The recovery of the current tasks's cpus_allowed will
> fail under some conditions". What are those conditions?
>

A condition is described in changelog(the same as above).

An example of other condition: the CPUSET of the task is changed
when this task do the offline... the last recovery may fails.



\
 
 \ /
  Last update: 2009-07-23 04:09    [W:0.246 / U:0.404 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site