Skip to content

Commit

Permalink
mm/damon: remove unnecessary do_exit() from kdamond
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
changbindu authored and torvalds committed Nov 6, 2021
1 parent 704571f commit 5f7fe2b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mm/damon/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -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"

0 comments on commit 5f7fe2b

Please sign in to comment.