From: SJ Park <sj@kernel.org>
To: SJ Park <sj@kernel.org>
Cc: stable@vger.kernel.org, Andrew Morton <akpm@linux-foundation.org>,
damon@lists.linux.dev, linux-kernel@vger.kernel.org,
linux-mm@kvack.org, Mark Polyakov <mark@thundercompute.com>
Subject: Re: [PATCH 6.12.y] mm/damon/reclaim: use parameter context correctly
Date: Mon, 16 Nov 2026 19:09:05 -0800 [thread overview]
Message-ID: <20261117030906.117403-1-sj@kernel.org> (raw)
In-Reply-To: <20261117025144.117100-1-sj@kernel.org>
On Mon, 16 Nov 2026 18:51:42 -0800 SJ Park <sj@kernel.org> wrote:
> From: SeongJae Park <sj@kernel.org>
>
> damon_reclaim_apply_parameters() allocates a new DAMON context, stages
> user-specified DAMON parameters on it, and commits to running DAMON
> context at once, using damon_commit_ctx(). The code is mistakenly
> over-writing the monitoring attributes and the reclaim scheme on the
> running context. It is not causing a real problem for monitoring
> attributes, but the scheme overwriting can remove scheme's internal status
> such as charged quota. Fix the wrong use of the parameter context.
>
> Link: https://lkml.kernel.org/r/20250706193207.39810-7-sj@kernel.org
> Fixes: 11ddcfc257a3 ("mm/damon/reclaim: use damon_commit_ctx()")
> Signed-off-by: SeongJae Park <sj@kernel.org>
> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
> (cherry picked from commit fed48693bdfeca666f7536ba88a05e9a4e5523b6)
> Signed-off-by: SJ Park <sj@kernel.org>
> ---
> Mark Polyakov found [1] this patch is missed in 6.12.y and causing an
> issue.
By the way, it was not picked for 6.12.y because I underestimated the bug and
therefore didn't Cc: stable@. Sorry about that, Mark and stable@ maintainers.
Also appreciate again for the issue report, Mark!
>
> [1] https://lore.kernel.org/CAA5JH2yO-gw1gn_172hv0YWFfQpkXz915a=uoVH+e49P_D8-+Q@mail.gmail.com
Thanks,
SJ
[...]
prev parent reply other threads:[~2026-11-17 3:09 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-17 2:51 [PATCH 6.12.y] mm/damon/reclaim: use parameter context correctly SJ Park
2026-11-17 3:01 ` sashiko-bot
2026-11-17 3:09 ` SJ Park [this message]
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=20261117030906.117403-1-sj@kernel.org \
--to=sj@kernel.org \
--cc=akpm@linux-foundation.org \
--cc=damon@lists.linux.dev \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=mark@thundercompute.com \
--cc=stable@vger.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.