]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mm/damon/core: unset damos->walk_completed after confimed set
authorSeongJae Park <sj@kernel.org>
Mon, 10 Feb 2025 18:27:34 +0000 (10:27 -0800)
committerAndrew Morton <akpm@linux-foundation.org>
Tue, 4 Mar 2025 05:49:45 +0000 (21:49 -0800)
commit8d36c797432ef2a3ede038410b795bbef949f09b
tree19140bef3ad538f1c76c694ddf2a8e81f3a8c75c
parente2272c3461972c64b7b20c37c5421080a59fa7f8
mm/damon/core: unset damos->walk_completed after confimed set

Patch series "mm/damon/core: fix wrong and/or useless damos_walk()
behaviors".

damos_walk() can finish working earlier or later than expected, and start
earlier than practical.  First two behaviors are clearly wrong behavior
(doesn't follow the documentation) and all three behaviors are only making
the feature useless.  Fix those.

This patch (of 3):

damos->walk_completed is only set, not unset.  This can cause next
damos_walk() finish earlier than expected.  Unset it after all
walk_completed is confirmed.

Link: https://lkml.kernel.org/r/20250210182737.134994-1-sj@kernel.org
Link: https://lkml.kernel.org/r/20250210182737.134994-2-sj@kernel.org
Fixes: bf0eaba0ff9c ("mm/damon/core: implement damos_walk()")
Signed-off-by: SeongJae Park <sj@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/damon/core.c