mm-damon-reclaim-make-enabled-checking-timer-simpler.patch removed from -mm tree
The quilt patch titled
Subject: mm/damon/reclaim: make 'enabled' checking timer simpler
has been removed from the -mm tree. Its filename was
mm-damon-reclaim-make-enabled-checking-timer-simpler.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/reclaim: make 'enabled' checking timer simpler
Date: Mon, 6 Jun 2022 18:23:09 +0000
DAMON_RECLAIM's 'enabled' parameter store callback ('enabled_store()') schedules the parameter check timer ('damon_reclaim_timer') if the parameter is set as 'Y'. Then, the timer schedules itself to check if user has set the parameter as 'N'. It's unnecessarily complex.
This commit makes it simpler by making the parameter store callback to schedule the timer regardless of the parameter value and disabling the timer's self scheduling.
---
mm/damon/reclaim.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-)
mm/damon/reclaim.c renamed from mm/damon/reclaim.c~mm-damon-reclaim-make-enabled-checking-timer-simpler +1 -8
@@ -353,7 +353,6 @@ static int damon_reclaim_turn(bool on)return 0 ; } -#define ENABLE_CHECK_INTERVAL_MS 1000static struct delayed_work damon_reclaim_timer;static void damon_reclaim_timer_fn (struct work_struct *work) {
@@ -367,10 +366,6 @@ static void damon_reclaim_timer_fn(strucelse enabled = last_enabled; } - -if (enabled) -schedule_delayed_work (&damon_reclaim_timer, -msecs_to_jiffies (ENABLE_CHECK_INTERVAL_MS )); } static DECLARE_DELAYED_WORK(damon_reclaim_timer, damon_reclaim_timer_fn);
@@ -388,9 +383,7 @@ static int enabled_store(const char *valif (!damon_reclaim_initialized)return rc; -if (enabled) -schedule_delayed_work (&damon_reclaim_timer,0 ); - +schedule_delayed_work (&damon_reclaim_timer,0 );return 0 ; }
_
Patches currently in -mm which might be from [email protected] are
mm-damon-reclaim-add-damon_reclaim_-prefix-to-enabled_store.patch mm-damon-dbgfs-add-and-use-mappings-between-schemes-action-inputs-and-damos_action-values.patch mm-damon-paddr-use-a-separate-function-for-damos_pageout-handling.patch mm-damon-schemes-add-lru_prio-damos-action.patch docs-admin-guide-damon-sysfs-document-lru_prio-scheme-action.patch mm-damon-schemes-add-lru_deprio-action.patch docs-admin-guide-damon-sysfs-document-lru_deprio-scheme-action.patch mm-damon-introduce-damon-based-lru-lists-sorting.patch docs-admin-guide-damon-add-a-document-for-damon_lru_sort.patch