diff mbox series

mm/damon: remove unnecessary do_exit() from kdamond

Message ID 20210927232421.17694-1-changbin.du@gmail.com (mailing list archive)
State New
Headers show
Series mm/damon: remove unnecessary do_exit() from kdamond | expand

Commit Message

Changbin Du Sept. 27, 2021, 11:24 p.m. UTC
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 mbox series

Patch

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"