diff options
author | Tejun Heo <tj@kernel.org> | 2013-09-06 15:31:08 -0400 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2013-09-10 09:41:00 -0400 |
commit | 58b79a91f57efec9457de8ff93a4cc4fb8daf753 (patch) | |
tree | eb7d3c84c5102506fe222d905761167c9c68373d /kernel/up.c | |
parent | 26b0332e30c7f93e780aaa054bd84e3437f84354 (diff) | |
download | op-kernel-dev-58b79a91f57efec9457de8ff93a4cc4fb8daf753.zip op-kernel-dev-58b79a91f57efec9457de8ff93a4cc4fb8daf753.tar.gz |
cgroup: fix cgroup post-order descendant walk of empty subtree
bd8815a6d8 ("cgroup: make css_for_each_descendant() and friends
include the origin css in the iteration") updated cgroup descendant
iterators to include the origin css; unfortuantely, it forgot to drop
special case handling in css_next_descendant_post() for empty subtree
leading to failure to visit the origin css without any child.
Fix it by dropping the special case handling and always returning the
leftmost descendant on the first iteration.
Signed-off-by: Tejun Heo <tj@kernel.org>
Acked-by: Li Zefan <lizefan@huawei.com>
Diffstat (limited to 'kernel/up.c')
0 files changed, 0 insertions, 0 deletions