From: Shakeel Butt <shakeel.butt@linux.dev>
To: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Cc: linux-mm@kvack.org
Subject: question on memcg_stats_[un]lock in memcg code
Date: Thu, 13 Mar 2025 18:11:30 -0700 [thread overview]
Message-ID: <5eqyqywhpgtpulqgnqyvpjivwfasbytgfrmum75ikvmsyhsjzu@xudzfvenzhzl> (raw)
Hi Sebastian,
The commit be3e67b54b43 ("mm/memcg: protect per-CPU counter by disabling
preemption on PREEMPT_RT where needed.") added memcg_stats_lock() and
other variants in memcontrol.c. There usage were added in
__mod_memcg_lruvec_state, __count_memcg_events and mem_cgroup_swapout. I
am wondering why __mod_memcg_state was excluded?
thanks,
Shakeel
next reply other threads:[~2025-03-14 1:11 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-03-14 1:11 Shakeel Butt [this message]
2025-03-14 1:46 ` Shakeel Butt
2025-03-14 10:12 ` Sebastian Andrzej Siewior
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=5eqyqywhpgtpulqgnqyvpjivwfasbytgfrmum75ikvmsyhsjzu@xudzfvenzhzl \
--to=shakeel.butt@linux.dev \
--cc=bigeasy@linutronix.de \
--cc=linux-mm@kvack.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