mbox series

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

Message ID 20241031183757.49610-1-sj@kernel.org (mailing list archive)
Headers show
Series mm/damon/core: fix handling of zero non-sampling intervals | expand

Message

SeongJae Park Oct. 31, 2024, 6:37 p.m. UTC
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