Re: [PATCH 4/8] hugetlb: handle truncate racing with page faults
From: Sven Schnelle
Date: Wed Sep 07 2022 - 04:23:14 EST
Mike Kravetz <mike.kravetz@xxxxxxxxxx> writes:
> Would you be willing to try the patch below in your environment?
> It addresses the stall I can create with a file that has a VERY large hole.
> In addition, it passes libhugetlbfs tests and has run for a while in my
> truncate/page fault race stress test. However, it is very early code.
> It would be nice to see if it addresses the issue in your environment.
Yes, that fixes the issue for me. I added some debugging yesterday
evening after sending the initial report, and the end value in the loop
was indeed quite large - i didn't record the exact number, but it was
something like 0xffffffffff800001. Feel free to add my Tested-by.
Thanks
Sven