From: Tejun Heo Date: Fri, 16 May 2014 17:22:52 +0000 (-0400) Subject: cgroup: implement css_tryget() X-Git-Tag: omap-for-v3.16/fixes-against-rc1~81^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6f4524d355a86769b65d5420a6ef47fb0bba9b72;p=pandora-kernel.git 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 Acked-by: Li Zefan Cc: Johannes Weiner --- Reading git-diff-tree failed