Re: [PATCH] cpuset: fix cpus_allowed mask for offline/online CPUs

2016-01-03 Thread Zefan Li
On 2016/1/1 20:09, Chen Yu wrote: Commit be4c9dd7aee5 ("cpuset: enable onlined cpu/node in effective masks") leverages cpuset's cpus_allowed and its parent's effective_cpus to calculate the new_cpus by: cpumask_and(_cpus, cs->cpus_allowed, parent_cs(cs)->effective_cpus); However cpus_allowed

RE: [PATCH] cpuset: fix cpus_allowed mask for offline/online CPUs

2016-01-03 Thread Chen, Yu C
Singh; Pintu Kumar; Michal Nazarewicz; Mel > Gorman; Gortmaker, Paul (Wind River); Peter Zijlstra; Tim Chen; Hugh Dickins; > Tejun Heo > Subject: Re: [PATCH] cpuset: fix cpus_allowed mask for offline/online CPUs > > On 2016/1/1 20:09, Chen Yu wrote: > > Commit be4c9dd

Re: [PATCH] cpuset: fix cpus_allowed mask for offline/online CPUs

2016-01-03 Thread Zefan Li
On 2016/1/1 20:09, Chen Yu wrote: Commit be4c9dd7aee5 ("cpuset: enable onlined cpu/node in effective masks") leverages cpuset's cpus_allowed and its parent's effective_cpus to calculate the new_cpus by: cpumask_and(_cpus, cs->cpus_allowed, parent_cs(cs)->effective_cpus); However cpus_allowed

Re: [PATCH] cpuset: fix cpus_allowed mask for offline/online CPUs

2016-01-03 Thread Tejun Heo
On Fri, Jan 01, 2016 at 08:09:13PM +0800, Chen Yu wrote: > Commit be4c9dd7aee5 ("cpuset: enable onlined cpu/node in effective masks") > leverages cpuset's cpus_allowed and its parent's effective_cpus to calculate > the new_cpus by: > > cpumask_and(_cpus, cs->cpus_allowed,

Re: [PATCH] cpuset: fix cpus_allowed mask for offline/online CPUs

2016-01-03 Thread Zefan Li
On 2016/1/1 20:09, Chen Yu wrote: Commit be4c9dd7aee5 ("cpuset: enable onlined cpu/node in effective masks") leverages cpuset's cpus_allowed and its parent's effective_cpus to calculate the new_cpus by: cpumask_and(_cpus, cs->cpus_allowed, parent_cs(cs)->effective_cpus); However cpus_allowed

Re: [PATCH] cpuset: fix cpus_allowed mask for offline/online CPUs

2016-01-03 Thread Zefan Li
On 2016/1/1 20:09, Chen Yu wrote: Commit be4c9dd7aee5 ("cpuset: enable onlined cpu/node in effective masks") leverages cpuset's cpus_allowed and its parent's effective_cpus to calculate the new_cpus by: cpumask_and(_cpus, cs->cpus_allowed, parent_cs(cs)->effective_cpus); However cpus_allowed

RE: [PATCH] cpuset: fix cpus_allowed mask for offline/online CPUs

2016-01-03 Thread Chen, Yu C
Singh; Pintu Kumar; Michal Nazarewicz; Mel > Gorman; Gortmaker, Paul (Wind River); Peter Zijlstra; Tim Chen; Hugh Dickins; > Tejun Heo > Subject: Re: [PATCH] cpuset: fix cpus_allowed mask for offline/online CPUs > > On 2016/1/1 20:09, Chen Yu wrote: > > Commit be4c9dd

Re: [PATCH] cpuset: fix cpus_allowed mask for offline/online CPUs

2016-01-03 Thread Tejun Heo
On Fri, Jan 01, 2016 at 08:09:13PM +0800, Chen Yu wrote: > Commit be4c9dd7aee5 ("cpuset: enable onlined cpu/node in effective masks") > leverages cpuset's cpus_allowed and its parent's effective_cpus to calculate > the new_cpus by: > > cpumask_and(_cpus, cs->cpus_allowed,

RE: [PATCH] cpuset: fix cpus_allowed mask for offline/online CPUs

2016-01-01 Thread Chen, Yu C
org; Chen, Yu C; Vlastimil Babka; Rik van Riel; > Joonsoo Kim; David Rientjes; Vishnu Pratap Singh; Pintu Kumar; Michal > Nazarewicz; Mel Gorman; Gortmaker, Paul (Wind River); Peter Zijlstra; Tim > Chen; Hugh Dickins; Li Zefan; Tejun Heo > Subject: [PATCH] cpuset: fix cpus_allowed m

[PATCH] cpuset: fix cpus_allowed mask for offline/online CPUs

2016-01-01 Thread Chen Yu
Commit be4c9dd7aee5 ("cpuset: enable onlined cpu/node in effective masks") leverages cpuset's cpus_allowed and its parent's effective_cpus to calculate the new_cpus by: cpumask_and(_cpus, cs->cpus_allowed, parent_cs(cs)->effective_cpus); However cpus_allowed will also be updated after the CPU is

RE: [PATCH] cpuset: fix cpus_allowed mask for offline/online CPUs

2016-01-01 Thread Chen, Yu C
org; Chen, Yu C; Vlastimil Babka; Rik van Riel; > Joonsoo Kim; David Rientjes; Vishnu Pratap Singh; Pintu Kumar; Michal > Nazarewicz; Mel Gorman; Gortmaker, Paul (Wind River); Peter Zijlstra; Tim > Chen; Hugh Dickins; Li Zefan; Tejun Heo > Subject: [PATCH] cpuset: fix cpus_allowed m

[PATCH] cpuset: fix cpus_allowed mask for offline/online CPUs

2016-01-01 Thread Chen Yu
Commit be4c9dd7aee5 ("cpuset: enable onlined cpu/node in effective masks") leverages cpuset's cpus_allowed and its parent's effective_cpus to calculate the new_cpus by: cpumask_and(_cpus, cs->cpus_allowed, parent_cs(cs)->effective_cpus); However cpus_allowed will also be updated after the CPU is

[PATCH] cpuset: fix cpus_allowed mask for offline/online CPUs

2015-12-27 Thread Chen Yu
Commit be4c9dd7aee5 ("cpuset: enable onlined cpu/node in effective masks") leverages cpuset's cpus_allowed and its parent's effective_cpus to calculate the new_cpus: cpumask_and(_cpus, cs->cpus_allowed, parent_cs(cs)->effective_cpus); since cpus_allowed will also be updated after the CPU's offline

[PATCH] cpuset: fix cpus_allowed mask for offline/online CPUs

2015-12-27 Thread Chen Yu
Commit be4c9dd7aee5 ("cpuset: enable onlined cpu/node in effective masks") leverages cpuset's cpus_allowed and its parent's effective_cpus to calculate the new_cpus: cpumask_and(_cpus, cs->cpus_allowed, parent_cs(cs)->effective_cpus); since cpus_allowed will also be updated after the CPU's offline