[PATCH 0/2] Docs/admin-guide/mm/damon: warn commit_inputs vs other params race

From: SeongJae Park

Date: Sun Mar 29 2026 - 11:31:18 EST


Writing 'Y' to the commit_inputs parameter of DAMON_RECLAIM and
DAMON_LRU_SORT, and writing other parameters before the commit_inputs
request is completely processed can cause race conditions. While the
consequence can be bad, the documentation is not clearly describing
that. Add clear warnings.

The issue was discovered [1,2] by sashiko.

[1] https://lore.kernel.org/20260319161620.189392-3-objecting@xxxxxxxxxxxxx
[2] https://lore.kernel.org/20260319161620.189392-2-objecting@xxxxxxxxxxxxx

Changes from RFC
(https://lore.kernel.org/20260328172415.49940-1-sj@xxxxxxxxxx)
- Wordsmith.
- Rebase to latest mm-new.

SeongJae Park (2):
Docs/admin-guide/mm/damon/reclaim: warn commit_inputs vs param updates
race
Docs/admin-guide/mm/damon/lru_sort: warn commit_inputs vs param
updates race

Documentation/admin-guide/mm/damon/lru_sort.rst | 4 ++++
Documentation/admin-guide/mm/damon/reclaim.rst | 4 ++++
2 files changed, 8 insertions(+)


base-commit: b761d53965a239abe1469f2e4e2d4f7d69fac9bd
--
2.47.3