diff options
author | Tejun Heo | 2014-05-16 19:22:52 +0200 |
---|---|---|
committer | Tejun Heo | 2014-05-16 19:22:52 +0200 |
commit | 6f4524d355a86769b65d5420a6ef47fb0bba9b72 (patch) | |
tree | b0edfe7bfc0a20173041aa8811acf4629ccb020d /lib/lockref.c | |
parent | device_cgroup: use css_has_online_children() instead of has_children() (diff) | |
download | kernel-qcow2-linux-6f4524d355a86769b65d5420a6ef47fb0bba9b72.tar.gz kernel-qcow2-linux-6f4524d355a86769b65d5420a6ef47fb0bba9b72.tar.xz kernel-qcow2-linux-6f4524d355a86769b65d5420a6ef47fb0bba9b72.zip |
cgroup: implement css_tryget()
Implement css_tryget() which tries to grab a cgroup_subsys_state's
reference as long as it already hasn't reached zero. Combined with
the recent css iterator changes to include offline && !released csses
during traversal, this can be used to access csses regardless of its
online state.
v2: Take the new flag CSS_NO_REF into account.
Signed-off-by: Tejun Heo <tj@kernel.org>
Acked-by: Li Zefan <lizefan@huawei.com>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Diffstat (limited to 'lib/lockref.c')
0 files changed, 0 insertions, 0 deletions