DAMON development mailing list
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "SJ Park" <sj@kernel.org>
Cc: damon@lists.linux.dev
Subject: Re: [RFC PATCH mm-hotfixes-unstable] mm/damon/core: cleanup damos->walk_completed in damos_walk_cancel()
Date: Sun, 22 Nov 2026 22:46:15 +0000	[thread overview]
Message-ID: <sashiko-outbox-228415@kernel.org> (raw)
In-Reply-To: <20261122224054.79767-1-sj@kernel.org>

> DAMOS walk could be unexpectedly only partially performed.  It can
> happen when there are multiple schemes and the walk is requested after
> the previous walk is canceled.
> 
> The expectation of DAMOS walk for a setup that has multiple schemes is
> that it will walk for one snapshot for all schemes.  To know if the walk
> for the one snapshot of a given scheme is done, each damos struct has
> the walk_completed field.  It is set when the walk for the given scheme
> is completed.  The walk skips schemes having the field set.  It is reset
> for all schemes when all the schemes get it set.
> 
> damos_walk_cancel() cancels all existing walks.  But it does not reset
> the walk_completed field.  damos_walk_cancel() can be called at any
> kdamond loop iteration.  For example, due to DAMON context pause or
> DAMOS watermarks-caused deactivation.  It means that the function can be
> [ ... ]
> 
> Closes: https://sashiko.dev/#/bug/linux-228a4c52-0545-4c1f-90ce-41114d8272e9
> Fixes: bf0eaba0ff9c ("mm/damon/core: implement damos_walk()")
> Cc: <stable@vger.kernel.org> # 6.14.x
> Signed-off-by: SJ Park <sj@kernel.org>

Sashiko has reviewed this patch and found no issues.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261122224054.79767-1-sj@kernel.org?part=1

      reply	other threads:[~2026-11-22 22:46 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-22 22:40 [RFC PATCH mm-hotfixes-unstable] mm/damon/core: cleanup damos->walk_completed in damos_walk_cancel() SJ Park
2026-11-22 22:46 ` sashiko-bot [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=sashiko-outbox-228415@kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=damon@lists.linux.dev \
    --cc=sashiko-reviews@lists.linux.dev \
    --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