Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "ck: memcg: Point wb to root memcg/blkcg when offlining to avo…
…id zombie" ANBZ: torvalds#543 This reverts commit cd5f2e4. The commit cd5f2e4 ("ck: memcg: Point wb to root memcg/blkcg when offlining to avoid zombie") doesn't cover all scenarios which can cause zombie memcg/blkcg. It only covers the scenario of memcg/blkcg offlining, while omitting the scenario where process is switched from one blkcg to another blkcg (refer cgwb_kill() called in cgwb_create()). Revert this commit in prep for the following patchset backported from upstream, which exactly addresses the same issue. It is worth nothing that, besides the defect described previously, there's still some visible difference between commit cd5f2e4 and the scheme from upstream. 1) Commit cd5f2e4 can only avoid zombie memcg, while it can not avoid zombie blkcg. 2) While blkcg/memcg offlining, all inodes associated with the offlining cgroup will be switched to the root memcg, while in the upstream scheme, all associated inodes will be switched to the nearest living ancestor's wb. This may affect the accounting logic after switching. Signed-off-by: Jeffle Xu <jefflexu@linux.alibaba.com> Reviewed-by: Joseph Qi <joseph.qi@linux.alibaba.com> Acked-by: Gang Deng <gavin.dg@linux.alibaba.com>
- Loading branch information