commit | d64f8038e2f535dc43a29e3ab2447b89498f7f53 | [log] [tgz] |
---|---|---|
author | Tejun Heo <tj@kernel.org> | Tue May 13 14:47:06 2014 -0400 |
committer | Tejun Heo <tj@kernel.org> | Tue May 13 14:47:06 2014 -0400 |
tree | c44b732c303d840f5a9376dd49a788d81d872b9f | |
parent | fedd7cc13dc97f61a2e7556f586555a7d2fcbd82 [diff] |
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. Signed-off-by: Tejun Heo <tj@kernel.org> Cc: Johannes Weiner <hannes@cmpxchg.org>