mm/damon: needn't hold kdamond_lock to print pid of kdamond
authorChangbin Du <changbin.du@gmail.com>
Fri, 5 Nov 2021 20:46:12 +0000 (13:46 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sat, 6 Nov 2021 20:30:44 +0000 (13:30 -0700)
commit42e4cef5fe48333e0db6e98b019edf5f2c2f11fd
tree2a3b6429dbec12f07c412409cb4fbe1e68618bcf
parent5f7fe2b9b827662cf349ab45406d6cbf0cc6251f
mm/damon: needn't hold kdamond_lock to print pid of kdamond

Just get the pid by 'current->pid'.  Meanwhile, to be symmetrical make
the 'starts' and 'finishes' logs both use debug level.

Link: https://lkml.kernel.org/r/20210927232432.17750-1-changbin.du@gmail.com
Signed-off-by: Changbin Du <changbin.du@gmail.com>
Reviewed-by: SeongJae Park <sj@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/damon/core.c