mbind: Use range_policy's numamask as priority on MPOL_BIND
Change-Id: Iaaa7998945c6e2b42d91d34a2f7b05db1f4d696d
This commit is contained in:
committed by
Masamichi Takagi
parent
9f1e6d707c
commit
f3c875b8e6
@@ -645,9 +645,8 @@ static void *mckernel_allocate_aligned_pages_node(int npages, int p2align,
|
|||||||
* only the ones requested in user policy */
|
* only the ones requested in user policy */
|
||||||
for (i = 0; i < ihk_mc_get_nr_numa_nodes(); ++i) {
|
for (i = 0; i < ihk_mc_get_nr_numa_nodes(); ++i) {
|
||||||
|
|
||||||
/* Not part of user requested policy? */
|
|
||||||
if (!test_bit(memory_nodes[node].nodes_by_distance[i].id,
|
if (!test_bit(memory_nodes[node].nodes_by_distance[i].id,
|
||||||
cpu_local_var(current)->proc->vm->numa_mask)) {
|
numa_mask)) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user