diff options
Diffstat (limited to 'mm')
-rw-r--r-- | mm/mempolicy.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/mm/mempolicy.c b/mm/mempolicy.c index 284974230459..9a3783ccff67 100644 --- a/mm/mempolicy.c +++ b/mm/mempolicy.c | |||
@@ -2145,7 +2145,6 @@ struct mempolicy *__mpol_dup(struct mempolicy *old) | |||
2145 | } else | 2145 | } else |
2146 | *new = *old; | 2146 | *new = *old; |
2147 | 2147 | ||
2148 | rcu_read_lock(); | ||
2149 | if (current_cpuset_is_being_rebound()) { | 2148 | if (current_cpuset_is_being_rebound()) { |
2150 | nodemask_t mems = cpuset_mems_allowed(current); | 2149 | nodemask_t mems = cpuset_mems_allowed(current); |
2151 | if (new->flags & MPOL_F_REBINDING) | 2150 | if (new->flags & MPOL_F_REBINDING) |
@@ -2153,7 +2152,6 @@ struct mempolicy *__mpol_dup(struct mempolicy *old) | |||
2153 | else | 2152 | else |
2154 | mpol_rebind_policy(new, &mems, MPOL_REBIND_ONCE); | 2153 | mpol_rebind_policy(new, &mems, MPOL_REBIND_ONCE); |
2155 | } | 2154 | } |
2156 | rcu_read_unlock(); | ||
2157 | atomic_set(&new->refcnt, 1); | 2155 | atomic_set(&new->refcnt, 1); |
2158 | return new; | 2156 | return new; |
2159 | } | 2157 | } |