diff options
| author | SeongJae Park <sj@kernel.org> | 2026-01-15 07:20:42 -0800 |
|---|---|---|
| committer | Andrew Morton <akpm@linux-foundation.org> | 2026-01-26 20:02:37 -0800 |
| commit | f54b51ce31976b35c5aac239a3b59687196d6b9d (patch) | |
| tree | a43ee07a78f8e8e4c57376ce8a450512918a4d62 /include/linux | |
| parent | 4262c53236977de3ceaa3bf2aefdf772c9b874dd (diff) | |
mm/damon/sysfs: use damon_kdamond_pid()
DAMON sysfs interface 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.
Avoid use of kdamond_lock outside of the core.
Link: https://lkml.kernel.org/r/20260115152047.68415-3-sj@kernel.org
Signed-off-by: SeongJae Park <sj@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions
