From: Liew Rui Yan <aethernet65535@gmail.com>
To: sj@kernel.org
Cc: aethernet65535@gmail.com, damon@lists.linux.dev, linux-mm@kvack.org
Subject: Re: (sashiko review) [PATCH v4 1/2] mm/damon/lru_sort: validate min_region_size to be power of 2
Date: Sat, 11 Apr 2026 08:04:58 +0800 [thread overview]
Message-ID: <20260411000458.11479-1-aethernet65535@gmail.com> (raw)
In-Reply-To: <20260410170051.51008-1-sj@kernel.org>
On Fri, 10 Apr 2026 10:00:50 -0700 SeongJae Park <sj@kernel.org> wrote:
> On Sat, 11 Apr 2026 00:46:10 +0800 Liew Rui Yan <aethernet65535@gmail.com> wrote:
>
> > On Fri, 10 Apr 2026 06:55:00 -0700 SeongJae Park <sj@kernel.org> wrote:
> >
> > > On Fri, 10 Apr 2026 17:40:04 +0800 Liew Rui Yan <aethernet65535@gmail.com> wrote:
> > >
> > > [...]
> > >
> > > Agreed. This was unclear to me in previous disucssions, though. I still agree
> > > it is out of the scope of this patch. But now I think we need to let users
> > > force-restart. Adding this to my todo list.
> >
> > Just to make sure - is this the same issue that my recent RFC patch [1]
> > aims to address? I want to make sure we're not duplicating efforts.
>
> Hmm, this makes me confused about how we ended up working on this series, then.
>
> >
> > I'm still actively working on that patch, and I plan to send the next
> > version next week. I've been holding off because I didn't want to send
> > multiple patches in parallel.
>
> Ok, seems I dropped a ball. I was working like AI bot that only works with
> limited and nearly fresh context for each mail that on my inbox. I will work
> on making another thing for tracking this kind of parallel works with good
> context. But since I already dropped the ball for this, I'd like to make sure
> we are on the same page. So I'd suggest below.
>
> 1. Let's hold this patch series. Andrew, please don't merge this for now until
> this discussion is completed.
> 2. Please summarize your parallel works in progress with the context about how
> you decided to do that in the way, with summaries of our previous
> discussions.
>
> Could you please do those, Liew?
TL;DR - There is no dependency between my parallel (2) works. I never
intended to merge these two works into a single series because they
address the problem at different level.
Yes, here is the summary of my parallel works and how I decided to
structure them.
My current parallel works
=========================
Series A - min_region_sz power-of-2 validation (this patch)
- Status: You gave Reviewed-by, asked Andrew to merge.
- Scope: Small, standalone fix for specific issue.
- Dependency: None
Series B - reset parameters (enabled/kdamond_pid) on unexpected
termination (RFC [1])
- Status: Preparing V2.
- Scope: Reset 'enabled' and 'kdamond_pid' when kdamond terminated
unexpectedly.
- Dependency: None
Summary of Series B
===================
The design evolved through our discussion:
1. Extended 'struct damon_ctx' with 'thread_status' pointers
- SJ pointed out: "This feels too much extension of core API for a
problem that can more simply be fixed."
2. Alternative proposals discussed:
- Option 1: Termination callback in core API (Too heavy for backport)
- Option 2: Override '.get' operator for parameters (code duplication)
- Option 3: On-demamd correction in enabled_store() (passive)
3. Final direction comfirmed:
- SJ suggested: "Can't we catch damon_commit_ctx() failure from the
calling place?"
- We agreed: Simple, backportable fix is the priority.
- Decision: Reset 'enabled' and 'kdamond_pid' immediately when
damon_commit_ctx() fails, add a fallback in the damon_turn() 'N'
path.
[1] https://lore.kernel.org/20260330164347.12772-1-aethernet65535@gmail.com
Best regards,
Rui Yan
next prev parent reply other threads:[~2026-04-11 0:04 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-04-10 4:42 [PATCH v4 0/2] mm/damon: " Liew Rui Yan
2026-04-10 4:42 ` [PATCH v4 1/2] mm/damon/lru_sort: " Liew Rui Yan
2026-04-10 9:40 ` (sashiko review) " Liew Rui Yan
2026-04-10 13:55 ` SeongJae Park
2026-04-10 16:46 ` Liew Rui Yan
2026-04-10 17:00 ` SeongJae Park
2026-04-10 23:24 ` SeongJae Park
2026-04-11 0:04 ` Liew Rui Yan [this message]
2026-04-10 13:56 ` SeongJae Park
2026-04-10 4:42 ` [PATCH v4 2/2] mm/damon/reclaim: " Liew Rui Yan
2026-04-10 10:08 ` (sashiko review) " Liew Rui Yan
2026-04-10 13:44 ` SeongJae Park
2026-04-10 13:57 ` SeongJae Park
2026-04-10 14:05 ` [PATCH v4 0/2] mm/damon: " SeongJae Park
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=20260411000458.11479-1-aethernet65535@gmail.com \
--to=aethernet65535@gmail.com \
--cc=damon@lists.linux.dev \
--cc=linux-mm@kvack.org \
--cc=sj@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