Skip to content

mm/damon/core: fix handling of zero non-sampling intervals

SeongJae Park damon linux-mm lkml stable 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 1 replyIn review 1 of 2 applied

Patches in v1 1 of 2 applied

#Subject and filesSizeRepliesApplied
1/2mm/damon/core: handle zero {aggregation,ops_update} intervalsmm/damon/core.c+3 -30 replies
2/2mm/damon/core: handle zero schemes apply intervalmm/damon/core.c+4 -40 repliesApplied

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] mm/damon/core: fix handling of zero non-sampling intervals

DAMON's internal intervals accounting logic is not correctly handling non-sampling intervals of zero values for a wrong assumption. This could cause unexpected monitoring behavior, and even result in infinite hang of DAMON sysfs interface user threads in case of zero aggregation interval. Fix those by updating the intervals accounting logic. For details of the root case and solutions, please refer to commit messages of fixes.

SeongJae Park (2):
mm/damon/core: handle zero {aggregation,ops_update} intervals mm/damon/core: handle zero schemes apply interval

 mm/damon/core.c | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

base-commit: 0c9ffe1412203c72280f67567bb53200f4de44fb

Signature · 1 line
2.39.5