]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit - kernel/cgroup/cgroup.c
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)
commit7d331fa985d3a39d5b8cb60caf016d3e53e57c91
tree91521a5c39556347262c2b41c05428236e6ced46
parentd37167ab7b3d67d53519585a44c47416e6758ed2
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