[RFC PATCH v1.1 0/3] mm/damon: fix wrong behaviors in DAMOS quota goals and sysfs refresh_ms
From: SJ Park
Date: Thu Aug 27 2026 - 09:59:42 EST
DAMOS quota goals and DAMON sysfs refresh_ms file have bugs that can
produce non critical but still unexpected behaviors. Fix the two bugs.
Patches 1 and 2 fix the bugs in DAMOS PSI goal initialization and
eligible_mem_bp online commit, respectively. Patch 3 fixes the bug in
DAMON sysfs refresh_ms file handling.
Changes from RFC
- RFC: https://lore.kernel.org/20260827042920.93580-1-sj@xxxxxxxxxx
(Mistakenly missed RFC tag)
- Fix build error.
- Add eligible_mem_bp nid commit fix.
SJ Park (3):
mm/damon/core: initialize damos_quota_goal->last_psi_total
mm/damon/core: copy nid for eligible_mem_bp damos quota goal commit
mm/damon/sysfs: set next refresh jiffies per sysfs context
mm/damon/core.c | 21 ++++++++++++++++++++-
mm/damon/sysfs.c | 11 +++++------
2 files changed, 25 insertions(+), 7 deletions(-)
base-commit: 9e11dd3caaf0ac70acdc0f568265a7fa5085ef42
--
2.47.3