selftests/damon: add a test for update_schemes_tried_regions hang bug
authorSeongJae Park <sj@kernel.org>
Tue, 12 Dec 2023 19:48:10 +0000 (19:48 +0000)
committerAndrew Morton <akpm@linux-foundation.org>
Wed, 20 Dec 2023 22:48:13 +0000 (14:48 -0800)
commite3898efaffdb8e78639e68e997e3b8b6d0ed4ebc
tree903e652321fffd936601d9f7c8682e1e0e260925
parentb5906f5f7359f561c5915dc146ced1bc2733401c
selftests/damon: add a test for update_schemes_tried_regions hang bug

Add a test for reproducing the update_schemes_tried_{regions,bytes}
command-causing indefinite hang bug that fixed by commit 7d6fa31a2fd7
("mm/damon/sysfs-schemes: add timeout for update_schemes_tried_regions"),
to avoid mistakenly re-introducing the bug.  Refer to the fix commit for
more details of the bug.

Link: https://lkml.kernel.org/r/20231212194810.54457-6-sj@kernel.org
Signed-off-by: SeongJae Park <sj@kernel.org>
Cc: Shuah Khan <shuah@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
tools/testing/selftests/damon/Makefile
tools/testing/selftests/damon/sysfs_update_schemes_tried_regions_hang.py [new file with mode: 0644]