[PATCH] mm/damon: remove unnecessary do_exit() from kdamond

From: Changbin Du
Date: Mon Sep 27 2021 - 19:24:28 EST


Just return from the kthread function.

Signed-off-by: Changbin Du <changbin.du@xxxxxxxxx>
---
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