]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit8bab767bc22489d8f51eecb879c27cafc2036f05
tree2a3b6429dbec12f07c412409cb4fbe1e68618bcf
parentf3386f9a737e3cae0926236b5985e04b771103f1
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