From a7685b09b592461119b0788eb7dce329504b37af Mon Sep 17 00:00:00 2001 From: Changbin Du Date: Fri, 5 Nov 2021 13:46:09 -0700 Subject: [PATCH] UPSTREAM: 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 (cherry picked from commit 5f7fe2b9b827662cf349ab45406d6cbf0cc6251f) Bug: 228223814 Signed-off-by: zhijun wan Change-Id: I3915c829f26c2d6e0e983156bf0229d067b03f4f --- 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 ed176319f9df..e0063ec32bb2 100644 --- a/mm/damon/core.c +++ b/mm/damon/core.c @@ -722,7 +722,7 @@ static int kdamond_fn(void *data) nr_running_ctxs--; mutex_unlock(&damon_lock); - do_exit(0); + return 0; } #include "core-test.h"