linux/mm/damon
SJ Park d079b6b890 mm/damon/core: wait ctx stop in damon_call() before reruning an error
damon_call() failure means the DAMON context started its termination.  The
termination is asynchronously done in kdamond thread.  The caller's error
handling should handle the race, too.  It is complicated and easy to make
mistakes.

Update damon_call() to ensure the context is stopped in the case, by
waiting until the completion is confirmed.

Link: https://lore.kernel.org/20260706140628.87414-10-sj@kernel.org
Signed-off-by: SJ Park <sj@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
2026-08-04 19:18:31 -07:00
..
tests mm/damon/core: remove damon_moving_sum() and its unit test 2026-07-30 19:40:36 -07:00
core.c mm/damon/core: wait ctx stop in damon_call() before reruning an error 2026-08-04 19:18:31 -07:00
Kconfig mm/damon: add CONFIG_DAMON_DEBUG_SANITY 2026-04-05 13:53:20 -07:00
lru_sort.c mm/damon/lru_sort: ignore damon_stop() return value 2026-08-04 19:18:31 -07:00
Makefile mm/damon: introduce DAMON_STAT module 2025-07-09 22:41:55 -07:00
modules-common.c MAINTAINERS: s/SeongJae/SJ/ 2026-07-09 15:48:53 -07:00
modules-common.h MAINTAINERS: s/SeongJae/SJ/ 2026-07-09 15:48:53 -07:00
ops-common.c MAINTAINERS: s/SeongJae/SJ/ 2026-07-09 15:48:53 -07:00
ops-common.h MAINTAINERS: s/SeongJae/SJ/ 2026-07-09 15:48:53 -07:00
paddr.c mm/damon/paddr: remove attrs param from __damon_pa_check_access() 2026-07-30 19:40:36 -07:00
reclaim.c mm/damon/reclaim: ignore damon_stop() return value 2026-08-04 19:18:30 -07:00
stat.c mm/damon/stat: use secs_to_jiffies() instead of msecs_to_jiffies() 2026-07-30 19:40:21 -07:00
sysfs-common.c MAINTAINERS: s/SeongJae/SJ/ 2026-07-09 15:48:53 -07:00
sysfs-common.h MAINTAINERS: s/SeongJae/SJ/ 2026-07-09 15:48:53 -07:00
sysfs-schemes.c mm/damon/sysfs-schemes: set probe hits as pseudo moving sums 2026-07-30 19:40:39 -07:00
sysfs.c mm/damon/sysfs: ignore damon_stop() return value 2026-08-04 19:18:30 -07:00
vaddr.c mm/damon/vaddr: remove attrs param from __damon_va_check_access() 2026-07-30 19:40:36 -07:00