Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
LU-9998 libcfs: split single NUMA node into partitions
[fs/lustre-release.git]
/
libcfs
/
libcfs
/
linux
/
linux-cpu.c
diff --git
a/libcfs/libcfs/linux/linux-cpu.c
b/libcfs/libcfs/linux/linux-cpu.c
index
59e9986
..
b7d6193
100644
(file)
--- a/
libcfs/libcfs/linux/linux-cpu.c
+++ b/
libcfs/libcfs/linux/linux-cpu.c
@@
-902,6
+902,10
@@
static struct cfs_cpt_table *cfs_cpt_table_create_pattern(const char *pattern)
if (!cpumask_empty(cpumask_of_node(i)))
ncpt++;
}
+ if (ncpt == 1) { /* single NUMA node */
+ kfree(pattern_dup);
+ return cfs_cpt_table_create(cpu_npartitions);
+ }
}
}