[LTP] [PATCH] dio_read: fix infinite loop when readsize >= filesize

Andrea Cervesato andrea.cervesato@suse.com
Tue Mar 24 10:08:12 CET 2026


Hi Petr,

> As a fix for indefinite loop LGTM. But why it happen readsize >= filesize? These
> are related to -r and -s values, but we always use -r 512k -w 512k -s 32M.
> I wonder why this happen only on s390x? (I'd expect ppc64le which has different
> page size.
> 
> Also that means that pread() is skipped when this happen.

I was trying to fix this sporadic failure on s390x and I discovered this bug
in the test so I send a patch. As you said, the DOR000 might still fail.

What happens at the moment is that children seem to stuck. This fix should
reduce the amount of messages and debug it a bit better. Let's see..

--
Andrea Cervesato
SUSE QE Automation Engineer Linux
andrea.cervesato@suse.com


More information about the ltp mailing list