diff options
author | SeongJae Park <sj@kernel.org> | 2023-11-24 21:38:40 +0000 |
---|---|---|
committer | Andrew Morton <akpm@linux-foundation.org> | 2023-12-06 16:12:48 -0800 |
commit | 7d6fa31a2fd7072376b3c8be66bf8527b2c8208c (patch) | |
tree | a9f2cdfe69df6c7ab9cb791f422c80169227a517 /drivers/base/cpu.c | |
parent | 854f2764b5771e450b44e6a5fddb6872deb5bb56 (diff) | |
download | lwn-7d6fa31a2fd7072376b3c8be66bf8527b2c8208c.tar.gz lwn-7d6fa31a2fd7072376b3c8be66bf8527b2c8208c.zip |
mm/damon/sysfs-schemes: add timeout for update_schemes_tried_regions
If a scheme is set to not applied to any monitoring target region for any
reasons including the target access pattern, quota, filters, or
watermarks, writing 'update_schemes_tried_regions' to 'state' DAMON sysfs
file can indefinitely hang. Fix the case by implementing a timeout for
the operation. The time limit is two apply intervals of each scheme.
Link: https://lkml.kernel.org/r/20231124213840.39157-1-sj@kernel.org
Fixes: 4d4e41b68299 ("mm/damon/sysfs-schemes: do not update tried regions more than one DAMON snapshot")
Signed-off-by: SeongJae Park <sj@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'drivers/base/cpu.c')
0 files changed, 0 insertions, 0 deletions