We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e70e463 commit 8064c5aCopy full SHA for 8064c5a
kernel/cgroup/cgroup-v1.c
@@ -108,7 +108,7 @@ int cgroup_transfer_tasks(struct cgroup *to, struct cgroup *from)
108
109
cgroup_lock();
110
111
- percpu_down_write(&cgroup_threadgroup_rwsem);
+ cgroup_attach_lock(true);
112
113
/* all tasks in @from are being moved, all csets are source */
114
spin_lock_irq(&css_set_lock);
@@ -144,7 +144,7 @@ int cgroup_transfer_tasks(struct cgroup *to, struct cgroup *from)
144
} while (task && !ret);
145
out_err:
146
cgroup_migrate_finish(&mgctx);
147
- percpu_up_write(&cgroup_threadgroup_rwsem);
+ cgroup_attach_unlock(true);
148
cgroup_unlock();
149
return ret;
150
}
0 commit comments