]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
mm/damon/reclaim: use damon_kdamond_pid()
authorSeongJae Park <sj@kernel.org>
Thu, 15 Jan 2026 15:20:44 +0000 (07:20 -0800)
committerAndrew Morton <akpm@linux-foundation.org>
Tue, 27 Jan 2026 04:02:38 +0000 (20:02 -0800)
commit33402229d28d837ceb4c8bcebc96dc509d9203f9
treea048bf1cba2003955fe2dfed33f63866a2c5c437
parent306550f0a5817d271361aa010fd245a4b43af725
mm/damon/reclaim: use damon_kdamond_pid()

DAMON_RECLAIM directly uses damon_ctx->kdamond field with manual
synchronization using damon_ctx->kdamond_lock, to get the pid of the
kdamond.  Use a new dedicated function for the purpose, namely
damon_kdamond_pid(), since that doesn't require manual and error-prone
synchronization.

Link: https://lkml.kernel.org/r/20260115152047.68415-5-sj@kernel.org
Signed-off-by: SeongJae Park <sj@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/damon/reclaim.c