mm-damon-core-avoid-destroyed-target-reference-from-damos-quota.patch removed from -mm tree
The quilt patch titled
Subject: mm/damon/core: avoid destroyed target reference from DAMOS quota
has been removed from the -mm tree. Its filename was
mm-damon-core-avoid-destroyed-target-reference-from-damos-quota.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: Akinobu Mita <[email protected]>
Subject: mm/damon/core: avoid destroyed target reference from DAMOS quota
Date: Sat, 17 May 2025 23:18:52 +0900
When the number of the monitoring targets in running contexts is reduced, there may be DAMOS quotas referencing the targets that will be destroyed.
Applying the scheme action for such DAMOS scheme will be skipped forever looking for the starting part of the region for the destroyed monitoring target.
To fix this issue, when the monitoring target is destroyed, reset the starting part for all DAMOS quotas that reference the target.
---
mm/damon/core.c | 8 ++++++++ 1 file changed, 8 insertions(+)
mm/damon/core.c renamed from mm/damon/core.c~mm-damon-core-avoid-destroyed-target-reference-from-damos-quota +8 -0
@@ -1093,9 +1093,17 @@ static int damon_commit_targets(if (err)return err; }else { +struct damos *s; +if (damon_target_has_pid (dst))put_pid (dst_target->pid);damon_destroy_target (dst_target); +damon_for_each_scheme (s, dst) { +if (s->quota.charge_target_from == dst_target) { + s->quota.charge_target_from =NULL ; + s->quota.charge_addr_from =0 ; + } + } } }
_
Patches currently in -mm which might be from [email protected] are