summaryrefslogtreecommitdiff
path: root/fs
diff options
context:
space:
mode:
authorLi Zefan <lizefan@huawei.com>2014-06-30 03:49:58 (GMT)
committerTejun Heo <tj@kernel.org>2014-06-30 14:16:25 (GMT)
commit970317aa48c6ef66cd023c039c2650c897bad927 (patch)
tree6308e957b9690395717c0894dd339505d1071d9a /fs
parent391acf970d21219a2a5446282d3b20eace0c0d7a (diff)
downloadlinux-970317aa48c6ef66cd023c039c2650c897bad927.tar.xz
cgroup: fix mount failure in a corner case
# cat test.sh #! /bin/bash mount -t cgroup -o cpu xxx /cgroup umount /cgroup mount -t cgroup -o cpu,cpuacct xxx /cgroup umount /cgroup # ./test.sh mount: xxx already mounted or /cgroup busy mount: according to mtab, xxx is already mounted on /cgroup It's because the cgroupfs_root of the first mount was under destruction asynchronously. Fix this by delaying and then retrying mount for this case. v3: - put the refcnt immediately after getting it. (Tejun) v2: - use percpu_ref_tryget_live() rather that introducing percpu_ref_alive(). (Tejun) - adjust comment. tj: Updated the comment a bit. Cc: <stable@vger.kernel.org> # 3.15 Signed-off-by: Li Zefan <lizefan@huawei.com> Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'fs')
0 files changed, 0 insertions, 0 deletions