Re: [PATCH 0/2] hugetlbfs: use i_mmap_rwsem for more synchronization

From: Mike Kravetz
Date: Thu Mar 12 2020 - 13:35:13 EST


On 3/12/20 8:57 AM, Qian Cai wrote:
> On Wed, 2020-03-04 at 16:26 -0800, Mike Kravetz wrote:
>> While discussing the issue with huge_pte_offset [1], I remembered that
>> there were more outstanding hugetlb races. These issues are:
>
> Reverted this series on the top of today's linux-next fixed the hang with LTP
> move_pages12 on both powerpc and arm64,
>
> # /opt/ltp/testcases/bin/move_pages12
> tst_test.c:1217: INFO: Timeout per run is 0h 05m 00s
> move_pages12.c:263: INFO: Free RAM 260577280 kB
> move_pages12.c:281: INFO: Increasing 2048kB hugepages pool on node 0 to 4
> move_pages12.c:291: INFO: Increasing 2048kB hugepages pool on node 8 to 4
> move_pages12.c:207: INFO: Allocating and freeing 4 hugepages on node 0
> move_pages12.c:207: INFO: Allocating and freeing 4 hugepages on node 8
> <hang>

Thank you for finding this.
I'll dig into it. It is timing related as it takes a few test runs for
me to reproduce.

Sorry for the issues. Feel free to revert upstream and mm tree until
there is a resolution.
--
Mike Kravetz