Commit 9ebd4896 authored by Andriy Skulysh's avatar Andriy Skulysh Committed by Greg Kroah-Hartman

staging: lustre: libcfs: Fix NUMA emulated mode

Kernel commit c1c3443c
assigns all allowed cpus to emulated node.

End cpt initialization loop when all CPUs are assigned.
Signed-off-by: default avatarAndriy Skulysh <Andriy_Skulysh@xyratex.com>
Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-3992
Reviewed-on: http://review.whamcloud.com/7724Reviewed-by: default avatarLiang Zhen <liang.zhen@intel.com>
Reviewed-by: default avatarOleg Drokin <oleg.drokin@intel.com>
Signed-off-by: default avatarJames Simmons <jsimmons@infradead.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 98f2ec61
...@@ -755,8 +755,13 @@ cfs_cpt_table_create(int ncpt) ...@@ -755,8 +755,13 @@ cfs_cpt_table_create(int ncpt)
struct cfs_cpu_partition *part; struct cfs_cpu_partition *part;
int n; int n;
if (cpt >= ncpt) /*
goto failed; * Each emulated NUMA node has all allowed CPUs in
* the mask.
* End loop when all partitions have assigned CPUs.
*/
if (cpt == ncpt)
break;
part = &cptab->ctb_parts[cpt]; part = &cptab->ctb_parts[cpt];
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment