mempolicy: fix a race in shared_policy_replace()
[GitHub/mt8127/android_kernel_alcatel_ttab.git] / include / linux / mempolicy.h
index ba7a0ff19d39997f84f483343bfecc5a15886db2..cec56932560823ac6a34ce5c5c21bea24316a9ea 100644 (file)
@@ -188,7 +188,7 @@ struct sp_node {
 
 struct shared_policy {
        struct rb_root root;
-       spinlock_t lock;
+       struct mutex mutex;
 };
 
 void mpol_shared_policy_init(struct shared_policy *sp, struct mempolicy *mpol);