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

Comments

Andrew Morton Nov. 1, 2024, 12:27 a.m. UTC | #1
On Thu, 31 Oct 2024 11:37:55 -0700 SeongJae Park <sj@kernel.org> wrote:

> 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.

Thanks.  fyi, there has been email lossage here.

Only [2/2] hit my inbox.  Neither [1/2] not [2/2] are in my linux-mm
folder.  I found the whole series in my linux-kernel folder.