]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit27e53d1ef43f8ff83ce419257d0921537d1638b0
tree91521a5c39556347262c2b41c05428236e6ced46
parent6676aa75d4a1252e244da8a662ba04e56e6032ab
cgroup: use restart_syscall() for retries after offline waits in cgroup_subtree_control_write()

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