[RFC PATCH 0/2] mm/damon: fix nr_snapshots semantics and max_nr_snapshots check coverage
Liew Rui Yan <[email protected]>
| Newsgroups | dev.linux.lists.damon,org.kvack.linux-mm |
|---|---|
| Message-ID | <[email protected]> |
Both patches address the DAMOS nr_snapshots/max_nr_snapshots
deactivation mechanism.
- Patch 1: fixes the nr_snapshots counting semantics.
- Patch 2: unifies deactivation checks to prevent busy-loop.
Note: Patch 1 should be applied before Patch 2, as damos_is_deactivated()
relies on correct nr_snapshots counting.
Liew Rui Yan (2):
mm/damon: fix nr_snapshots counting using tried_applied flag
mm/damon: skip deactivated schemes in watermark checks and add
fallback sleep
include/linux/damon.h | 2 ++
mm/damon/core.c | 42 ++++++++++++++++++++++++++----------------
2 files changed, 28 insertions(+), 16 deletions(-)
--
2.55.0