Skip to contentSkip to conversation

mm-damon-simplify-stop-mechanism.patch removed from -mm tree

merged [email protected] 1 participant 1 message Nov 11, 2021

lore
Share & tools
lore

[email protected]

author tree notice Applied
#0 lore raw

The patch titled
Subject: mm/damon: simplify stop mechanism
has been removed from the -mm tree. Its filename was
mm-damon-simplify-stop-mechanism.patch

This patch was dropped because it was merged into mainline or a subsystem tree

------------------------------------------------------
From: Changbin Du <[email protected]>
Subject: mm/damon: simplify stop mechanism

A kernel thread can exit gracefully with kthread_stop(). So we don't need a new flag 'kdamond_stop'. And to make sure the task struct is not freed when accessing it, get reference to it before termination.

---

 include/linux/damon.h |    1 
 mm/damon/core.c       |   51 +++++++++++-----------------------------
 2 files changed, 15 insertions(+), 37 deletions(-)
include/linux/damon.h renamed from include/linux/damon.h~mm-damon-simplify-stop-mechanism +0 -1
@@ -381,7 +381,6 @@ struct damon_ctx {
 
 /* public: */
 	struct task_struct *kdamond;
-	bool kdamond_stop;
 	struct mutex kdamond_lock;
 
 	struct damon_primitive primitive;
mm/damon/core.c renamed from mm/damon/core.c~mm-damon-simplify-stop-mechanism +15 -36

117 lines not on this page · raw message

_

Patches currently in -mm which might be from [email protected] are