/* Description: Returns the nodemask_t mems_allowed of the cpuset attached to the specified @tsk. Guaranteed to return some non-empty subset of node_states, even if this means going outside the tasks cpuset.  */
nodemask_t cpuset_mems_allowed(struct task_struct *tsk)
/* Description: Returns the nodemask_t mems_allowed of the cpuset attached to the specified @tsk. Guaranteed to return some non-empty subset of node_states, even if this means going outside the tasks cpuset.  */
nodemask_t cpuset_mems_allowed(struct task_struct *tsk)
{
	nodemask_t mask;
	mutex_lock(&callback_mutex);
	task_lock(tsk);
	guarantee_online_mems(task_cs(tsk), &mask);
	task_unlock(tsk);
	mutex_unlock(&callback_mutex);
	return mask;
}