From: Tejun Heo Date: Fri, 29 Nov 2013 15:42:59 +0000 (-0500) Subject: cgroup: remove cgroup_pidlist->use_count X-Git-Tag: v3.14-rc1~136^2~26 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=045023658ca1e30dc0bb1f148b42c95b740d3e02;p=pandora-kernel.git cgroup: remove cgroup_pidlist->use_count After the recent changes, pidlist ref is held only between cgroup_pidlist_start() and cgroup_pidlist_stop() during which cgroup->pidlist_mutex is also held. IOW, the reference count is redundant now. While in use, it's always one and pidlist_mutex is held - holding the mutex has exactly the same protection. This patch collapses destroy_dwork queueing into cgroup_pidlist_stop() so that pidlist_mutex is not released inbetween and drops pidlist->use_count. This patch shouldn't introduce any behavior changes. Signed-off-by: Tejun Heo Acked-by: Li Zefan --- Reading git-diff-tree failed