Re: [PATCH v2] misc_cgroup: use a counter to count the number of failures

From: Michal Koutný
Date: Thu Aug 26 2021 - 07:29:59 EST


On Thu, Aug 26, 2021 at 09:34:45AM +0800, brookxu <brookxu.cn@xxxxxxxxx> wrote:
> The core logic of pids cgroup and misc cgroup is similar.

Yes, the latter is conceptually a generalization of the former and it can
be tempting to use the general form. Beware that pids controller would
need to retain its existing API (and the behavior of being an
independent controller) and that would be IMO exceptions
counterweighting the generalization.

> Is it possible for us to merge pids cgroup into misc cgroup?

Technically it might be possible but I can't see the benefit (but maybe
you envisioned something else where my reasoning won't apply).

Michal