The Linux Kernel Mailing List
 help / color / mirror / Atom feed
From: Pavel Tikhomirov <ptikhomirov@virtuozzo.com>
To: Tejun Heo <tj@kernel.org>
Cc: "Johannes Weiner" <hannes@cmpxchg.org>,
	"Michal Koutný" <mkoutny@suse.com>,
	cgroups@vger.kernel.org, linux-kernel@vger.kernel.org,
	"Pavel Tikhomirov" <ptikhomirov@virtuozzo.com>
Subject: [PATCH 0/2] cgroup-v2/freezer: small improvements
Date: Tue, 23 Dec 2025 18:20:06 +0800	[thread overview]
Message-ID: <20251223102124.738818-1-ptikhomirov@virtuozzo.com> (raw)

This patch series contains two small improvements for cgroup-v2 freezer
controller.

First allows freezing cgroups with kthreads inside, we still won't
freeze kthreads, we still ignore them, but at the same time we allow
cgroup to report frozen when all other non-kthread tasks are frozen.

Second patch adds information into dmesg to identify processes which
prevent cgroup from being frozen or just don't allow it to freeze fast
enough.

I hope these changes will be generally useful for the users of freezer
cgroup controller.

Signed-off-by: Pavel Tikhomirov <ptikhomirov@virtuozzo.com>

Pavel Tikhomirov (2):
  cgroup-v2/freezer: Allow freezing with kthreads
  cgroup-v2/freezer: Print information about unfreezable process

 include/linux/cgroup-defs.h     |   5 ++
 kernel/cgroup/cgroup-internal.h |   5 ++
 kernel/cgroup/cgroup.c          |   2 +
 kernel/cgroup/freezer.c         | 155 ++++++++++++++++++++++++++++++--
 4 files changed, 161 insertions(+), 6 deletions(-)

-- 
2.52.0


             reply	other threads:[~2025-12-23 10:24 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-12-23 10:20 Pavel Tikhomirov [this message]
2025-12-23 10:20 ` [PATCH 1/2] cgroup-v2/freezer: allow freezing with kthreads Pavel Tikhomirov
2025-12-23 10:25   ` Pavel Tikhomirov
2025-12-23 10:20 ` [PATCH 1/2] cgroup-v2/freezer: Allow " Pavel Tikhomirov
2025-12-23 10:20 ` [PATCH 2/2] cgroup-v2/freezer: Print information about unfreezable process Pavel Tikhomirov
2025-12-23 20:58   ` kernel test robot
2025-12-24  4:43     ` Pavel Tikhomirov
2025-12-24  1:30   ` kernel test robot
2025-12-24  3:26   ` kernel test robot
2025-12-24  4:28   ` kernel test robot
2025-12-24 11:03   ` kernel test robot
2025-12-27 22:51   ` Tejun Heo
2025-12-29  5:32     ` Pavel Tikhomirov
2025-12-29 17:39       ` Tejun Heo
2025-12-29  7:05     ` Pavel Tikhomirov
2025-12-23 17:29 ` [PATCH 0/2] cgroup-v2/freezer: small improvements Michal Koutný
2025-12-24  3:06   ` Pavel Tikhomirov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20251223102124.738818-1-ptikhomirov@virtuozzo.com \
    --to=ptikhomirov@virtuozzo.com \
    --cc=cgroups@vger.kernel.org \
    --cc=hannes@cmpxchg.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mkoutny@suse.com \
    --cc=tj@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox