From: Changbin Du Date: Fri, 5 Nov 2021 20:46:09 +0000 (-0700) Subject: mm/damon: remove unnecessary do_exit() from kdamond X-Git-Tag: v6.1-rc5~2715^2~42 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5f7fe2b9b827662cf349ab45406d6cbf0cc6251f;p=platform%2Fkernel%2Flinux-starfive.git mm/damon: remove unnecessary do_exit() from kdamond Just return from the kthread function. Link: https://lkml.kernel.org/r/20210927232421.17694-1-changbin.du@gmail.com Signed-off-by: Changbin Du Cc: SeongJae Park Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/mm/damon/core.c b/mm/damon/core.c index 874558a..61a9e3b 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"