All of lore.kernel.org
 help / color / mirror / Atom feed
* [LTP] [PATCH 1/1] readahead02: Sleep 1.5 msec to fix problem on bare metal
@ 2025-11-20 16:35 Petr Vorel
  2025-11-21 10:41 ` Cyril Hrubis
  0 siblings, 1 reply; 12+ messages in thread
From: Petr Vorel @ 2025-11-20 16:35 UTC (permalink / raw)
  To: ltp

This fixes ppc64le bare metal. It looks like kernel needs some time to
update counters.

Suggested-by: Cyril Hrubis <chrubis@suse.cz>
Signed-off-by: Petr Vorel <pvorel@suse.cz>
---
 testcases/kernel/syscalls/readahead/readahead02.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/testcases/kernel/syscalls/readahead/readahead02.c b/testcases/kernel/syscalls/readahead/readahead02.c
index f007db187e..05537ca991 100644
--- a/testcases/kernel/syscalls/readahead/readahead02.c
+++ b/testcases/kernel/syscalls/readahead/readahead02.c
@@ -173,6 +173,7 @@ static int read_testfile(struct tcase *tc, int do_readahead,
 
 			i++;
 			offset += readahead_length;
+			usleep(1500);
 		} while ((size_t)offset < fsize);
 		tst_res(TINFO, "readahead calls made: %zu", i);
 		*cached = get_cached_size();
-- 
2.51.0


-- 
Mailing list info: https://lists.linux.it/listinfo/ltp

^ permalink raw reply related	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2025-11-24 13:21 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-11-20 16:35 [LTP] [PATCH 1/1] readahead02: Sleep 1.5 msec to fix problem on bare metal Petr Vorel
2025-11-21 10:41 ` Cyril Hrubis
2025-11-21 10:45   ` Petr Vorel
2025-11-21 11:42     ` Cyril Hrubis
2025-11-21 11:48       ` Cyril Hrubis
2025-11-24  9:14       ` Jan Stancek via ltp
2025-11-24  9:18         ` Cyril Hrubis
2025-11-24  9:20           ` Petr Vorel
2025-11-24  9:20           ` Jan Stancek via ltp
2025-11-24 12:58       ` Li Wang via ltp
2025-11-24 13:18         ` Cyril Hrubis
2025-11-24 13:20           ` Li Wang via ltp

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.