From: Tejun Heo Date: Sun, 14 Apr 2013 17:32:19 +0000 (-0700) Subject: cgroup: make cgroup_path() not print double slashes X-Git-Tag: omap-for-v3.10/dt-fixes-for-merge-window~124^2~12 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=da1f296fd2bfd5ad3c53d72a1ece593e821cf374;p=pandora-kernel.git cgroup: make cgroup_path() not print double slashes While reimplementing cgroup_path(), 65dff759d2 ("cgroup: fix cgroup_path() vs rename() race") introduced a bug where the path of a non-root cgroup would have two slahses at the beginning, which is caused by treating the root cgroup which has the name '/' like non-root cgroups. $ grep systemd /proc/self/cgroup 1:name=systemd://user/root/1 Fix it by special casing root cgroup case and not looping over it in the normal path. Signed-off-by: Tejun Heo Cc: Li Zefan --- Reading git-diff-tree failed