* [PATCH] mm/damon: remove unnecessary do_exit() from kdamond
@ 2021-09-27 23:24 Changbin Du
0 siblings, 0 replies; only message in thread
From: Changbin Du @ 2021-09-27 23:24 UTC (permalink / raw)
To: Andrew Morton, SeongJae Park; +Cc: linux-mm, linux-kernel, Changbin Du
Just return from the kthread function.
Signed-off-by: Changbin Du <changbin.du@gmail.com>
---
mm/damon/core.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/mm/damon/core.c b/mm/damon/core.c
index 30e9211f494a..bc5f74348649 100644
--- a/mm/damon/core.c
+++ b/mm/damon/core.c
@@ -714,7 +714,7 @@ static int kdamond_fn(void *data)
nr_running_ctxs--;
mutex_unlock(&damon_lock);
- do_exit(0);
+ return 0;
}
#include "core-test.h"
--
2.25.1
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-09-27 23:24 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-27 23:24 [PATCH] mm/damon: remove unnecessary do_exit() from kdamond Changbin Du
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox