Skip to content

Commit 5f7fe2b

Browse files
changbindutorvalds
authored andcommitted
mm/damon: remove unnecessary do_exit() from kdamond
Just return from the kthread function. Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: Changbin Du <[email protected]> Cc: SeongJae Park <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
1 parent 704571f commit 5f7fe2b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mm/damon/core.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -714,7 +714,7 @@ static int kdamond_fn(void *data)
714714
nr_running_ctxs--;
715715
mutex_unlock(&damon_lock);
716716

717-
do_exit(0);
717+
return 0;
718718
}
719719

720720
#include "core-test.h"

0 commit comments

Comments
 (0)