Commit 05181e57 authored by SeongJae Park's avatar SeongJae Park Committed by Lee Jones
Browse files

UPSTREAM: mm/damon/core: check apply interval in damon_do_apply_schemes()

kdamond_apply_schemes() checks apply intervals of schemes and avoid
further applying any schemes if no scheme passed its apply interval.
However, the following schemes applying function, damon_do_apply_schemes()
iterates all schemes without the apply interval check.  As a result, the
shortest apply interval is applied to all schemes.  Fix the problem by
checking the apply interval in damon_do_apply_schemes().

Bug: 254441685
Link: https://lkml.kernel.org/r/20240205201306.88562-1-sj@kernel.org


Fixes: 42f994b7 ("mm/damon/core: implement scheme-specific apply interval")
Signed-off-by: default avatarSeongJae Park <sj@kernel.org>
Cc: <stable@vger.kernel.org>	[6.7.x]
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
(cherry picked from commit e9e3db69)
Signed-off-by: default avatarLee Jones <joneslee@google.com>
Change-Id: Ifb70c38fadcc0ea4d2e77fddee4b7a875e69958f
parent 49bb2617
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment