[<prev] [next>] [day] [month] [year] [list]
Message-Id: <20210927232421.17694-1-changbin.du@gmail.com>
Date: Tue, 28 Sep 2021 07:24:21 +0800
From: Changbin Du <changbin.du@...il.com>
To: Andrew Morton <akpm@...ux-foundation.org>,
SeongJae Park <sjpark@...zon.de>
Cc: linux-mm@...ck.org, linux-kernel@...r.kernel.org,
Changbin Du <changbin.du@...il.com>
Subject: [PATCH] mm/damon: remove unnecessary do_exit() from kdamond
Just return from the kthread function.
Signed-off-by: Changbin Du <changbin.du@...il.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
Powered by blists - more mailing lists