cgroup: use restart_syscall() for retries after offline waits in cgroup_subtree_contr...
authorTejun Heo <tj@kernel.org>
Tue, 13 May 2014 16:11:00 +0000 (12:11 -0400)
committerTejun Heo <tj@kernel.org>
Tue, 13 May 2014 16:11:00 +0000 (12:11 -0400)
After waiting for a child to finish offline,
cgroup_subtree_control_write() jumps up to retry from after the input
parsing and active protection breaking.  This retry makes the
scheduled locking update - removal of cgroup_tree_mutex - more
difficult.  Let's simplify it by returning with restart_syscall() for
retries.

Signed-off-by: Tejun Heo <tj@kernel.org>
Acked-by: Li Zefan <lizefan@huawei.com>
kernel/cgroup.c

diff --cc kernel/cgroup.c
Simple merge