Re: [PATCH cgroup/for-3.14-fixes] cgroup: protect modifications to cgroup_idr with cgroup_mutex

2014-02-11 Thread Li Zefan
On 2014/2/12 10:15, Li Zefan wrote: > On 2014/2/12 0:26, Michal Hocko wrote: >> On Tue 11-02-14 10:41:05, Tejun Heo wrote: >> [...] >>> @@ -4254,12 +4256,12 @@ static long cgroup_create(struct cgroup *parent, >>> struct dentry *dentry, >>> >>> return 0; >>> >>> -err_unlock: >>> -

Re: [PATCH cgroup/for-3.14-fixes] cgroup: protect modifications to cgroup_idr with cgroup_mutex

2014-02-11 Thread Li Zefan
On 2014/2/12 0:26, Michal Hocko wrote: > On Tue 11-02-14 10:41:05, Tejun Heo wrote: > [...] >> @@ -4254,12 +4256,12 @@ static long cgroup_create(struct cgroup *parent, >> struct dentry *dentry, >> >> return 0; >> >> -err_unlock: >> -mutex_unlock(_mutex); >> -/* Release the

Re: [PATCH cgroup/for-3.14-fixes] cgroup: protect modifications to cgroup_idr with cgroup_mutex

2014-02-11 Thread Michal Hocko
On Tue 11-02-14 10:41:05, Tejun Heo wrote: [...] > @@ -4254,12 +4256,12 @@ static long cgroup_create(struct cgroup *parent, > struct dentry *dentry, > > return 0; > > -err_unlock: > - mutex_unlock(_mutex); > - /* Release the reference count that we took on the superblock */ > -

[PATCH cgroup/for-3.14-fixes] cgroup: protect modifications to cgroup_idr with cgroup_mutex

2014-02-11 Thread Tejun Heo
Hello, This is the slightly modified patch that I applied to cgroup/for-3.14-fixes. Thanks a lot! 8< >From 0ab02ca8f887908152d1a96db5130fc661d36a1e Mon Sep 17 00:00:00 2001 From: Li Zefan Date: Tue, 11 Feb 2014 16:05:46 +0800 Setup cgroupfs like this: # mount -t cgroup -o

[PATCH cgroup/for-3.14-fixes] cgroup: protect modifications to cgroup_idr with cgroup_mutex

2014-02-11 Thread Tejun Heo
Hello, This is the slightly modified patch that I applied to cgroup/for-3.14-fixes. Thanks a lot! 8 From 0ab02ca8f887908152d1a96db5130fc661d36a1e Mon Sep 17 00:00:00 2001 From: Li Zefan lize...@huawei.com Date: Tue, 11 Feb 2014 16:05:46 +0800 Setup cgroupfs like this: #

Re: [PATCH cgroup/for-3.14-fixes] cgroup: protect modifications to cgroup_idr with cgroup_mutex

2014-02-11 Thread Michal Hocko
On Tue 11-02-14 10:41:05, Tejun Heo wrote: [...] @@ -4254,12 +4256,12 @@ static long cgroup_create(struct cgroup *parent, struct dentry *dentry, return 0; -err_unlock: - mutex_unlock(cgroup_mutex); - /* Release the reference count that we took on the superblock */ -

Re: [PATCH cgroup/for-3.14-fixes] cgroup: protect modifications to cgroup_idr with cgroup_mutex

2014-02-11 Thread Li Zefan
On 2014/2/12 0:26, Michal Hocko wrote: On Tue 11-02-14 10:41:05, Tejun Heo wrote: [...] @@ -4254,12 +4256,12 @@ static long cgroup_create(struct cgroup *parent, struct dentry *dentry, return 0; -err_unlock: -mutex_unlock(cgroup_mutex); -/* Release the reference count

Re: [PATCH cgroup/for-3.14-fixes] cgroup: protect modifications to cgroup_idr with cgroup_mutex

2014-02-11 Thread Li Zefan
On 2014/2/12 10:15, Li Zefan wrote: On 2014/2/12 0:26, Michal Hocko wrote: On Tue 11-02-14 10:41:05, Tejun Heo wrote: [...] @@ -4254,12 +4256,12 @@ static long cgroup_create(struct cgroup *parent, struct dentry *dentry, return 0; -err_unlock: - mutex_unlock(cgroup_mutex); -