Re: [PATCH 5/5] hugetlbfs: Limit wait time when trying to share huge PMD

Mike Kravetz
2019-09-12T16:44:01Z

On 9/12/19 2:06 AM, Waiman Long wrote:
> If we can take the rwsem in read mode, that should solve the problem
> AFAICS. As I don't have a full understanding of the history of that
> code, I didn't try to do that in my patch.

Do you still have access to an environment that creates the long stalls?
If so, can you try the simple change of taking the semaphore in read mode
in huge_pmd_share.

--
Mike Kravetz