On Mon, Oct 20, 2025 at 03:39:05PM +0200, Sumanth Korikkar wrote:
> On Mon, Oct 20, 2025 at 01:11:29PM +0100, Lorenzo Stoakes wrote:
> > Since we can now perform actions after the VMA is established via
> > mmap_prepare, use desc->action_success_hook to set up the hugetlb lock
> > once the VMA is setup.
> >
> > We also make changes throughout hugetlbfs to make this possible.
> >
> > Note that we must hide newly established hugetlb VMAs from the rmap until
> > the operation is entirely complete as we establish a hugetlb lock during
> > VMA setup that can be raced by rmap users.
> >
> > Signed-off-by: Lorenzo Stoakes <[email protected]>
> > Reviewed-by: Jason Gunthorpe <[email protected]>
>
> Hi Lorenzo,
>
> Tested this patch with libhugetlbfs tests. No locking issues anymore.
>
> Tested-by: Sumanth Korikkar <[email protected]>
>
> Thank you

Thanks! I managed to repro very consistently locally so was able to also confirm
on my end, nice to get external confirmation also! :)

Cheers, Lorenzo

Reply via email to