Re: [PATCH 3/5] cgroup: fix mount failure in a corner case

2014-06-23 Thread Li Zefan
On 2014/6/21 3:10, Tejun Heo wrote: > On Thu, Jun 12, 2014 at 02:32:13PM +0800, Li Zefan wrote: >> @@ -1677,6 +1679,22 @@ static struct dentry *cgroup_mount(struct >> file_system_type *fs_type, >> goto out_unlock; >> } >> >> +/* >> + * If some subsystems have been bound

Re: [PATCH 3/5] cgroup: fix mount failure in a corner case

2014-06-20 Thread Tejun Heo
On Thu, Jun 12, 2014 at 02:32:13PM +0800, Li Zefan wrote: > @@ -1677,6 +1679,22 @@ static struct dentry *cgroup_mount(struct > file_system_type *fs_type, > goto out_unlock; > } > > + /* > + * If some subsystems have been bound to existing cgroup hierarchies, > +

[PATCH 3/5] cgroup: fix mount failure in a corner case

2014-06-11 Thread Li Zefan
# 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_ro