]> git.ipfire.org Git - thirdparty/linux.git/commit
mm/damon/lru_sort: use damon_kdamond_pid()
authorSeongJae Park <sj@kernel.org>
Thu, 15 Jan 2026 15:20:43 +0000 (07:20 -0800)
committerAndrew Morton <akpm@linux-foundation.org>
Tue, 27 Jan 2026 04:02:37 +0000 (20:02 -0800)
commit306550f0a5817d271361aa010fd245a4b43af725
tree4ca89d09942af0cf6bd7ae004adf68df90e087aa
parentf54b51ce31976b35c5aac239a3b59687196d6b9d
mm/damon/lru_sort: use damon_kdamond_pid()

DAMON_LRU_SORT 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-4-sj@kernel.org
Signed-off-by: SeongJae Park <sj@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/damon/lru_sort.c