Re: [PATCH cgroup] cgroup: set the correct return code if hierarchy limits are reached

From: Tejun Heo
Date: Mon Jun 27 2022 - 05:07:33 EST


On Mon, Jun 27, 2022 at 05:12:55AM +0300, Vasily Averin wrote:
> When cgroup_mkdir reaches the limits of the cgroup hierarchy, it should
> not return -EAGAIN, but instead react similarly to reaching the global
> limit.

While I'm not necessarily against this change, I find the rationale to
be somewhat lacking. Can you please elaborate why -ENOSPC is the right
one while -EAGAIN is incorrect?

Thanks.

--
tejun