|
@@ -2145,7 +2145,6 @@ struct mempolicy *__mpol_dup(struct mempolicy *old)
|
|
|
} else
|
|
} else
|
|
|
*new = *old;
|
|
*new = *old;
|
|
|
|
|
|
|
|
- rcu_read_lock();
|
|
|
|
|
if (current_cpuset_is_being_rebound()) {
|
|
if (current_cpuset_is_being_rebound()) {
|
|
|
nodemask_t mems = cpuset_mems_allowed(current);
|
|
nodemask_t mems = cpuset_mems_allowed(current);
|
|
|
if (new->flags & MPOL_F_REBINDING)
|
|
if (new->flags & MPOL_F_REBINDING)
|
|
@@ -2153,7 +2152,6 @@ struct mempolicy *__mpol_dup(struct mempolicy *old)
|
|
|
else
|
|
else
|
|
|
mpol_rebind_policy(new, &mems, MPOL_REBIND_ONCE);
|
|
mpol_rebind_policy(new, &mems, MPOL_REBIND_ONCE);
|
|
|
}
|
|
}
|
|
|
- rcu_read_unlock();
|
|
|
|
|
atomic_set(&new->refcnt, 1);
|
|
atomic_set(&new->refcnt, 1);
|
|
|
return new;
|
|
return new;
|
|
|
}
|
|
}
|