Re: [PATCH v1] mm/damon/stat: roll back context on damon_call() failure

From: SeongJae Park

Date: Fri May 29 2026 - 19:46:17 EST


On Fri, 29 May 2026 16:29:44 -0400 최유호 <dbgh9129@xxxxxxxxx> wrote:

> On Fri, 29 May 2026 at 12:00, SeongJae Park <sj@xxxxxxxxxx> wrote:
>
> > Thank you for clarifying, Yuho. I think the current cleanup is ok, but I
> > understand it is confusing to read. Apparently that confused you at least, and
> > that's not ok. What about adding a comment explaining the context?
>
> Thank you for the explanation.
>
> That makes sense. Looking again, I noticed the same retry-time cleanup
> pattern is also used in lru_sort.c and reclaim.c, so the behavior
> seems intentional.
>
> I'll send v2 patch adding a comment explaining deferred cleanup and
> retry-time handling.

Sounds good, I'm looking forward to the v2!


Thanks,
SJ

[...]