From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 867E61FC110; Tue, 5 May 2026 22:05:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778018740; cv=none; b=VbHS9Rstkzqj6HZf1cNMCbEPpW0dFfR/DWOwxM7XjIPYfxkv5q9QS83BhzRkH/IKHIZ930prNxJgOKRrE1fiV2ENpCmLhweAoHyC09Gk+14DO8IN8DOyrop2wY8dNrBr7a+BSlpi9l++/tvXLxDifTP2PRALFRQgMiNd5Ia4cJI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778018740; c=relaxed/simple; bh=MF76jSWcfmbdQcv7mOkVB8lgG+j2xi80v/OC7YRzDOw=; h=Date:Message-ID:From:To:Cc:Subject; b=XMPGLpr7DelmBS0baB4ZdujHtD4trP2NDiPWVxsMuPxisKs25nxHvuNs+c39j+J4BzVC7LhE53MYTZkGnveYNyQIM0AKTjmjPstY99kCme6v7CbMTPanHdqO3/mM/wwkIwEgyxD33BuWXtX38D/0T5a8EEF/RI51Pvhcaj4LHPE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=Mpa+XVhw; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="Mpa+XVhw" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4F65DC2BCB4; Tue, 5 May 2026 22:05:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1778018740; bh=MF76jSWcfmbdQcv7mOkVB8lgG+j2xi80v/OC7YRzDOw=; h=Date:From:To:Cc:Subject:From; b=Mpa+XVhwdyZByd7yejGkvXXWl44yx7duLRlBAQ7qCaaO7gsJRJa62143Oirh83QVr nM8U5wZyM7B123nfDKU/W3mpDMcjHOrWWpP8Usa98v7HaQwXzDoaLT1S7pdI0iOOvD W35YqyNONrpAPTBiDH5vv5xT7iZnvzUlm68fI6A7QxtVATPFvM23o8Tq8hqRjGCiLo KOYDJ8Css+qfQ8FMwre/WnYMUKop9w94NbCI5S4kVBv+GZqdpkewp1ezPZVjrBr1sC JGTIa1rpapqL93+2OFuK9OvCyVvwmCF1XzraEhaZ5fme6QJKJKlUL5QUff4FDcYBEk xJyIzFeCQHBzA== Date: Tue, 05 May 2026 12:05:39 -1000 Message-ID: From: Tejun Heo To: Linus Torvalds Cc: linux-kernel@vger.kernel.org, cgroups@vger.kernel.org, Johannes Weiner , =?UTF-8?Q?Michal_Koutn=C3=BD?= , Waiman Long Subject: [GIT PULL] cgroup: Fixes for v7.1-rc2 Precedence: bulk X-Mailing-List: cgroups@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Hello, The following changes since commit 981cd338614c96070cf9854679014fd027c1fb1d: docs: cgroup: fix typo 'protetion' -> 'protection' (2026-04-27 07:55:40 -1000) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/tj/cgroup.git tags/cgroup-for-7.1-rc2-fixes for you to fetch changes up to d8769544bde51b0ac980d10f8fe9f9fed6c95995: docs: cgroup-v1: Update charge-commit section (2026-05-04 11:02:12 -1000) ---------------------------------------------------------------- cgroup: Fixes for v7.1-rc2 - During v6.19, cgroup task unlink was moved from do_exit() to after the final task switch to satisfy a controller invariant. That left the kernel seeing tasks past exit_signals() longer than userspace expected, and several v7.0 follow-ups tried to bridge the gap by making rmdir wait for the kernel side. None held up. The latest is an A-A deadlock when rmdir is invoked by the reaper of zombies whose pidns teardown the rmdir itself is waiting on, which points at the synchronizing approach being fundamentally wrong: - Take a different approach: drop the wait, leave rmdir's user-visible side returning as soon as cgroup.procs is empty, and defer the css percpu_ref kill that drives ->css_offline() until the cgroup is fully depopulated. - Tagged for stable. Somewhat invasive but contained. The hope is that fixing forward sticks. If not, the fallback is to revert the entire chain and rework on the development branch. - Doesn't plug a pre-existing analogous race in cgroup_apply_control_disable() (controller disable via subtree_control). Not a regression. The development branch will do the more invasive restructuring needed for that. - Documentation update for cgroup-v1 charge-commit section that still referenced functions removed when the memcg hugetlb try-commit-cancel protocol was retired. ---------------------------------------------------------------- T.J. Mercier (1): docs: cgroup-v1: Update charge-commit section Tejun Heo (1): cgroup: Defer css percpu_ref kill on rmdir until cgroup is depopulated Documentation/admin-guide/cgroup-v1/memcg_test.rst | 6 +- include/linux/cgroup-defs.h | 4 +- kernel/cgroup/cgroup.c | 250 ++++++++++----------- 3 files changed, 121 insertions(+), 139 deletions(-) Thanks. -- tejun