Re: [PATCH v2] mm/damon/tests/core-kunit: add test for damon_call()

From: SJ Park

Date: Wed Nov 18 2026 - 09:28:42 EST


Hello Sailesh,

On Wed, 18 Nov 2026 12:07:55 +0530 Sailesh Nandanavanam <saileshnandanavanam@xxxxxxxxx> wrote:

> A newly allocated damon_ctx has call_controls_obsolete set, meaning no
> kdamond is available to handle call requests. damon_call() should
> return -ECANCELED in that case instead of queueing the request and
> waiting forever. When call_controls_obsolete is unset and
> damon_call_control->repeat is set, damon_call() should return 0
> without waiting for kdamond. Add a kunit test for the two cases.
>
> Signed-off-by: Sailesh Nandanavanam <saileshnandanavanam@xxxxxxxxx>
> ---
> Changes from v1
> (https://lore.kernel.org/20261117172219.26725-1-saileshnandanavanam@xxxxxxxxx,
> https://lore.kernel.org/20261117174834.29182-1-saileshnandanavanam@xxxxxxxxx)
> - Merge the two tests into damon_test_call().
> - Drop the list_empty()/call_controls.next expectations.
> - Drop list_del() on the stack-allocated control.
> - Post as a single patch.

>From the next time, please ensure all discussions on the previous version is
done. You could do so by giving more time before posting a new version, since
the last message to the previous version thread is added.

[...]
> base-commit: 20eef29b7c8465ac98d7dd6d6f2ac07a8d8056ca

Seems this is the mainline. Please use mm-new [1] as the baseline of DAMON
patches from the next time.

Other than those,

Reviewed-by: SJ Park <sj@xxxxxxxxxx>

This patch is applied to damon/next [1] tree. I will repost it soon (~1 week)
as an mm.git merge request. So, no action from your side is needed for now.

[1] https://origin.kernel.org/doc/html/latest/mm/damon/maintainer-profile.html#scm-trees


Thanks,
SJ

[...]