|
@@ -929,7 +929,8 @@ static int update_cpumask(struct cpuset *cs, struct cpuset *trialcs,
|
|
|
if (retval < 0)
|
|
if (retval < 0)
|
|
|
return retval;
|
|
return retval;
|
|
|
|
|
|
|
|
- if (!cpumask_subset(trialcs->cpus_allowed, cpu_active_mask))
|
|
|
|
|
|
|
+ if (!cpumask_subset(trialcs->cpus_allowed,
|
|
|
|
|
+ top_cpuset.cpus_allowed))
|
|
|
return -EINVAL;
|
|
return -EINVAL;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -1186,8 +1187,8 @@ static int update_nodemask(struct cpuset *cs, struct cpuset *trialcs,
|
|
|
goto done;
|
|
goto done;
|
|
|
|
|
|
|
|
if (!nodes_subset(trialcs->mems_allowed,
|
|
if (!nodes_subset(trialcs->mems_allowed,
|
|
|
- node_states[N_MEMORY])) {
|
|
|
|
|
- retval = -EINVAL;
|
|
|
|
|
|
|
+ top_cpuset.mems_allowed)) {
|
|
|
|
|
+ retval = -EINVAL;
|
|
|
goto done;
|
|
goto done;
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|