[PATCH 01/13] cgroup: improve css_from_dir() into css_tryget_from_dir()

2014-02-08 Thread Tejun Heo
css_from_dir() returns the matching css (cgroup_subsys_state) given a dentry and subsystem. The function doesn't pin the css before returning and requires the caller to be holding RCU read lock or cgroup_mutex and handling pinning on the caller side. Given that users of the function are likely

[PATCH 01/13] cgroup: improve css_from_dir() into css_tryget_from_dir()

2014-02-08 Thread Tejun Heo
css_from_dir() returns the matching css (cgroup_subsys_state) given a dentry and subsystem. The function doesn't pin the css before returning and requires the caller to be holding RCU read lock or cgroup_mutex and handling pinning on the caller side. Given that users of the function are likely

Re: [PATCH 01/13] cgroup: improve css_from_dir() into css_tryget_from_dir()

2014-01-29 Thread Michal Hocko
On Tue 28-01-14 18:54:33, Tejun Heo wrote: > css_from_dir() returns the matching css (cgroup_subsys_state) given a > dentry and subsystem. The function doesn't pin the css before > returning and requires the caller to be holding RCU read lock or > cgroup_mutex and handling pinning on the caller

Re: [PATCH 01/13] cgroup: improve css_from_dir() into css_tryget_from_dir()

2014-01-29 Thread Michal Hocko
On Tue 28-01-14 18:54:33, Tejun Heo wrote: css_from_dir() returns the matching css (cgroup_subsys_state) given a dentry and subsystem. The function doesn't pin the css before returning and requires the caller to be holding RCU read lock or cgroup_mutex and handling pinning on the caller side.

[PATCH 01/13] cgroup: improve css_from_dir() into css_tryget_from_dir()

2014-01-28 Thread Tejun Heo
css_from_dir() returns the matching css (cgroup_subsys_state) given a dentry and subsystem. The function doesn't pin the css before returning and requires the caller to be holding RCU read lock or cgroup_mutex and handling pinning on the caller side. Given that users of the function are likely

[PATCH 01/13] cgroup: improve css_from_dir() into css_tryget_from_dir()

2014-01-28 Thread Tejun Heo
css_from_dir() returns the matching css (cgroup_subsys_state) given a dentry and subsystem. The function doesn't pin the css before returning and requires the caller to be holding RCU read lock or cgroup_mutex and handling pinning on the caller side. Given that users of the function are likely