DAMON development mailing list
 help / color / mirror / Atom feed
From: SeongJae Park <sj@kernel.org>
To: sashiko-bot@kernel.org
Cc: SeongJae Park <sj@kernel.org>, damon@lists.linux.dev
Subject: Re: [PATCH 6.1.y 1/2] mm/damon/core: implement damon_kdamond_pid()
Date: Wed, 13 May 2026 21:43:20 -0700	[thread overview]
Message-ID: <20260514044323.95504-1-sj@kernel.org> (raw)
In-Reply-To: <20260514013924.20D23C19425@smtp.kernel.org>

On Thu, 14 May 2026 01:39:23 +0000 sashiko-bot@kernel.org wrote:

> Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
> - [Medium] The commit message references a non-existent function `damon_is_running()` and makes inaccurate claims about the current state of API callers.
> --
> 
> commit 79a54a37fc83e2191edada566d0eb1ab79303fd8
> Author: SeongJae Park <sj@kernel.org>
> 
> mm/damon/core: implement damon_kdamond_pid()
> 
> This commit hides the kdamond and kdamond_lock fields from DAMON API callers
> by implementing a new damon_kdamond_pid() function to retrieve the worker
> thread's PID.
> 
> Link: https://lkml.kernel.org/r/20260115152047.68415-1-sj@kernel.org
> Link: https://lkml.kernel.org/r/20260115152047.68415-2-sj@kernel.org
> 
> > For the first use case, a dedicated API function, namely
> > 'damon_is_running()' is provided, and all DAMON API callers are using the
> > function for the use case.
> 
> Is damon_is_running() actually present in the codebase at this point?
> 
> The commit message states that damon_is_running() is provided and all API
> callers are using it, but it appears this function does not exist in the
> codebase at the time of this commit. It seems to only be introduced in the
> subsequent patch "mm/damon/lru_sort: detect and use fresh enabled and
> kdamond_pid values" as a backported dependency.
> 
> Furthermore, API callers like mm/damon/sysfs.c (via
> damon_sysfs_ctx_running()) still directly check ctx->kdamond != NULL under
> kdamond_lock.
> 
> Could this description be inaccurate, perhaps due to patches being applied
> out of order during a backport?

Sashiko is correct, this description is inaccurate.  But that's intentional for
stable kernel backports.

> 
> -- 
> Sashiko AI review · https://sashiko.dev/#/patchset/2026051243-crevice-spool-75d8@gregkh?part=1


Thanks,
SJ

  reply	other threads:[~2026-05-14  4:43 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <2026051243-crevice-spool-75d8@gregkh>
2026-05-13  4:30 ` [PATCH 6.1.y 1/2] mm/damon/core: implement damon_kdamond_pid() SeongJae Park
2026-05-14  1:39   ` sashiko-bot
2026-05-14  4:43     ` SeongJae Park [this message]
2026-05-13  4:30 ` [PATCH 6.1.y 2/2] mm/damon/lru_sort: detect and use fresh enabled and kdamond_pid values SeongJae Park
2026-05-14  2:01   ` sashiko-bot
2026-05-14  5:26     ` SeongJae Park
2026-05-14  5:29   ` 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=20260514044323.95504-1-sj@kernel.org \
    --to=sj@kernel.org \
    --cc=damon@lists.linux.dev \
    --cc=sashiko-bot@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