aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--kernel/cpuset.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/cpuset.c b/kernel/cpuset.c
index 2523a4b6a8c6..bf42381a4195 100644
--- a/kernel/cpuset.c
+++ b/kernel/cpuset.c
@@ -1183,11 +1183,11 @@ static int attach_task(struct cpuset *cs, char *pidbuf, char **ppathbuf)
1183 mm = get_task_mm(tsk); 1183 mm = get_task_mm(tsk);
1184 if (mm) { 1184 if (mm) {
1185 mpol_rebind_mm(mm, &to); 1185 mpol_rebind_mm(mm, &to);
1186 if (is_memory_migrate(cs))
1187 do_migrate_pages(mm, &from, &to, MPOL_MF_MOVE_ALL);
1186 mmput(mm); 1188 mmput(mm);
1187 } 1189 }
1188 1190
1189 if (is_memory_migrate(cs))
1190 do_migrate_pages(tsk->mm, &from, &to, MPOL_MF_MOVE_ALL);
1191 put_task_struct(tsk); 1191 put_task_struct(tsk);
1192 synchronize_rcu(); 1192 synchronize_rcu();
1193 if (atomic_dec_and_test(&oldcs->count)) 1193 if (atomic_dec_and_test(&oldcs->count))