mm-damon-accept-parallel-damon_call-requests.patch removed from -mm tree
The quilt patch titled
Subject: mm/damon: accept parallel damon_call() requests
has been removed from the -mm tree. Its filename was
mm-damon-accept-parallel-damon_call-requests.patch
This patch was dropped because it was merged into the mm-stable branch of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
------------------------------------------------------
From: SeongJae Park <[email protected]>
Subject: mm/damon: accept parallel damon_call() requests
Date: Sat, 12 Jul 2025 12:50:03 -0700
Patch series "mm/damon: remove damon_callback".
damon_callback was the only way for communicating with DAMON for contexts running on its worker thread. The interface is flexible and simple. But as DAMON evolves with more features, damon_callback has become somewhat too old. With runtime parameters update, for example, its lack of synchronization support was found to be inconvenient. Arguably it is also not easy to use correctly since the callers should understand when each callback is called, and implication of the return values from the callbacks.
To replace it, damon_call() and damos_walk() are introduced. And those replaced a few damon_callback use cases. Some use cases of damon_callback such as parallel or repetitive DAMON internal data reading and additional cleanups cannot simply be replaced by damon_call() and damos_walk(), though.
To allow those replaceable, extend damon_call() for parallel and/or repeated callbacks and modify the core/ops layers for additional resources cleanup. With the updates, replace the remaining damon_callback usages and finally say goodbye to damon_callback.
This patch (of 14):
Calling damon_call() while it is serving for another parallel thread immediately fails with -EBUSY. The caller should call it again, later. Each caller implementing such retry logic would be redundant. Accept parallel damon_call() requests and do the wait instead of the caller.
---
include/linux/damon.h | 7 ++++- mm/damon/core.c | 49 ++++++++++++++++++++-------------------- 2 files changed, 30 insertions(+), 26 deletions(-)
include/linux/damon.h renamed from include/linux/damon.h~mm-damon-accept-parallel-damon_call-requests +5 -2
@@ -673,6 +673,8 @@ struct damon_call_control {struct completion completion;/* informs if the kdamond canceled @fn infocation */ bool canceled; +/* List head for siblings. */ +struct list_head list; };/**
@@ -798,8 +800,9 @@ struct damon_ctx {/* for scheme quotas prioritization */ unsigned long *regions_score_histogram; -struct damon_call_control *call_control; -struct mutex call_control_lock; +/* lists of &struct damon_call_control */ +struct list_head call_controls; +struct mutex call_controls_lock;struct damos_walk_control *walk_control;struct mutex walk_control_lock;
mm/damon/core.c renamed from mm/damon/core.c~mm-damon-accept-parallel-damon_call-requests +25 -24
78 lines not on this page · raw message
_
Patches currently in -mm which might be from [email protected] are
mm-damon-core-commit-damos_quota_goal-nid.patch mm-damon-sysfs-implement-refresh_ms-file-under-kdamond-directory.patch mm-damon-sysfs-implement-refresh_ms-file-internal-work.patch docs-admin-guide-mm-damon-usage-document-refresh_ms-file.patch docs-abi-damon-update-for-refresh_ms.patch