[LTP] [PATCH v1 1/1] migrate_pages03: remove wait_ksmd_full_scan() check because it's not necessary

Pengfei Xu pengfei.xu@intel.com
Thu Jul 18 11:03:57 CEST 2024


Remove wait_ksmd_full_scan() check because it's not a necessary step for
migrate_pages03 syscall test:
1. KSM(kernel samepage merging) could be enabled and it is optional for
migrate_pages syscall testing.
2. When server launched any qemu guest, wait_ksmd_full_scan() will in
infinite loop due to /sys/kernel/mm/ksm/full_scans number would not
increase anymore, and migrate_pages03 will failed with timeout reason.
After removed wait_ksmd_full_scan(), migrate_pages03 could pass without
issue.

Signed-off-by: Pengfei Xu <pengfei.xu@intel.com>
---
 testcases/kernel/syscalls/migrate_pages/migrate_pages03.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/testcases/kernel/syscalls/migrate_pages/migrate_pages03.c b/testcases/kernel/syscalls/migrate_pages/migrate_pages03.c
index 4d3299b61..f514ed10c 100644
--- a/testcases/kernel/syscalls/migrate_pages/migrate_pages03.c
+++ b/testcases/kernel/syscalls/migrate_pages/migrate_pages03.c
@@ -95,7 +95,6 @@ static void setup(void)
 
 	SAFE_FILE_SCANF(PATH_KSM "run", "%d", &orig_ksm_run);
 	SAFE_FILE_PRINTF(PATH_KSM "run", "%d", 1);
-	wait_ksmd_full_scan();
 }
 
 static void cleanup(void)
-- 
2.43.0



More information about the ltp mailing list