Skip to contentSkip to conversation

mm/damon: remove unnecessary do_exit() from kdamond

PATCH Applied Changbin Du 1 participant 1 message Sep 27, 2021

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

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

Just return from the kthread function.

---
 mm/damon/core.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
mm/damon/core.c +1 -1
index 30e9211f494a..bc5f74348649 100644
@@ -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"
Signature · 1 line
2.25.1