Re: [PATCH] cgroup/cpuset: skip hardwall ancestor scan in v2 mode in cpuset_current_node_allowed()

From: Michal Koutný

Date: Mon May 11 2026 - 09:11:57 EST


On Sat, May 09, 2026 at 05:36:39PM +0800, Wandun <chenwandun1@xxxxxxxxx> wrote:
> > is_in_v2_mode() is also true for v1 mounted with cpuset_v2_mode, where
> > cpuset.mem_exclusive / cpuset.mem_hardwall are still settable. Would
> > that be a problem here? cpuset_v2() looks like a tighter fit.
> You're right, it is a problem.
>
> Under v1 + cpuset_v2_mode, CS_MEM_HARDWALL/CS_MEM_EXCLUSIVE can be set
> on non-root cpuset cgroup, so can't directly return true;

Ah, sorry missd that.

> I will fix it in v2.

Thx.

Attachment: signature.asc
Description: PGP signature