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 <changbin.du@gmail.com>
Cc: SeongJae Park <sjpark@amazon.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
(cherry picked from commit 5f7fe2b9b8)
Bug: 228223814
Signed-off-by: Hailong Tu <tuhailong@oppo.com>
Change-Id: I3915c829f26c2d6e0e983156bf0229d067b03f4f
This commit is contained in:
parent
526b5029ad
commit
bcf5bbcaf4
1 changed files with 1 additions and 1 deletions
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue