rtmutex: Detect changes in the pi lock chain
[platform/adaptation/renesas_rcar/renesas_kernel.git] / kernel / cpuset.c
index dba9e4a..e6b1b66 100644 (file)
@@ -2482,9 +2482,9 @@ int __cpuset_node_allowed_softwall(int node, gfp_t gfp_mask)
 
        task_lock(current);
        cs = nearest_hardwall_ancestor(task_cs(current));
+       allowed = node_isset(node, cs->mems_allowed);
        task_unlock(current);
 
-       allowed = node_isset(node, cs->mems_allowed);
        mutex_unlock(&callback_mutex);
        return allowed;
 }