[LTP] [PUSHED] zram01.sh: Workaround division by 0 on vfat on ppc64le
Petr Vorel
pvorel@suse.cz
Tue Sep 19 11:25:44 CEST 2023
Hi Richie,
> Repeatedly read /sys/block/zram*/mm_stat for 1 sec. This should fix bug
> on ppc64le on stable kernels, where mem_used_total is often 0.
> Signed-off-by: Petr Vorel <pvorel@suse.cz>
> Reviewed-by: Li Wang <liwang@redhat.com>
> Reviewed-by: Richard Palethorpe <rpalethorpe@suse.com>
> [rpalethorpe: s/loop/check/ suggested by Li]
> ---
> rpalethorpe:
> This may not fix the problem, but it can rule out a simple race
> condition.
thanks a lot for finishing the effort!
I was waiting for Cyril to have his ack.
Kind regards,
Petr
More information about the ltp
mailing list