Skip to contentSkip to conversation

mm-damon-core-do-not-call-opscleanup-when-destroying-targets.patch removed from -mm tree

merged mm-stable Andrew Morton 1 participant 1 message Jul 20, 2025

lore
Share & tools
lore

Andrew Morton

author tree notice Applied
#0 lore raw

The quilt patch titled
Subject: mm/damon/core: do not call ops.cleanup() when destroying targets
has been removed from the -mm tree. Its filename was
mm-damon-core-do-not-call-opscleanup-when-destroying-targets.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/core: do not call ops.cleanup() when destroying targets
Date: Sat, 12 Jul 2025 12:50:10 -0700

damon_operations.cleanup() is documented to be called for kdamond termination, but also being called for targets destruction, which is done for any damon_ctx destruction. Nobody is using the callback for now, though. Remove the cleanup() call under the destruction.

---

 mm/damon/core.c |    5 -----
 1 file changed, 5 deletions(-)
mm/damon/core.c renamed from mm/damon/core.c~mm-damon-core-do-not-call-opscleanup-when-destroying-targets +0 -5
@@ -550,11 +550,6 @@ static void damon_destroy_targets(struct
 {
 	struct damon_target *t, *next_t;
 
-	if (ctx->ops.cleanup) {
-		ctx->ops.cleanup(ctx);
-		return;
-	}
-
 	damon_for_each_target_safe(t, next_t, ctx)
 		damon_destroy_target(t);
 }

_

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