diff options
author | Changbin Du <[email protected]> | 2021-11-05 13:48:22 -0700 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2021-11-06 13:30:46 -0700 |
commit | 0f91d13366a402420bf98eaaf393db03946c13e0 (patch) | |
tree | bc10841661e60314e68754fbda0ffb41353509c4 /arch/mips/netlogic/xlp/usb-init.c | |
parent | 0d16cfd46b48689de6a5ca594bc1a68105f6658b (diff) |
mm/damon: simplify stop mechanism
A kernel thread can exit gracefully with kthread_stop(). So we don't
need a new flag 'kdamond_stop'. And to make sure the task struct is not
freed when accessing it, get reference to it before termination.
Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Changbin Du <[email protected]>
Reviewed-by: SeongJae Park <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'arch/mips/netlogic/xlp/usb-init.c')
0 files changed, 0 insertions, 0 deletions