Re: [PATCH] mm/vma: drop mm asynchronously in vma_start_read()

From: Lorenzo Stoakes (ARM)

Date: Tue Nov 24 2026 - 10:57:06 EST


On Tue, Nov 24, 2026 at 07:46:04AM -0800, Suren Baghdasaryan wrote:
> On Tue, Nov 24, 2026 at 5:04 AM Pedro Falcato <pfalcato@xxxxxxx> wrote:
> > Is there any particular reason for unlocking the RCU comment last? after the mmdrop_async().
>
> Yeah, I think moving the RCU unlocking was unnecessary (unlock as soon
> as possible is in general advisable) and we could just remove the
> comment. Both versions however seem correct to me.

For simplicity. 'The operation is done under an RCU lock' :)

I alluded above, but intent is to revert 0b16f8bed19c which I _think_ is
fine. And at that point it actively simplifies.

The operations done there are only done in a rare scenario (VMA recycled) and
now the extra bits done under RCU there are really quite small so I think fine.

I will follow up on that later.

> > Acked-by: Pedro Falcato <pfalcato@xxxxxxx>
>
> Reviewed-by: Suren Baghdasaryan <surenb@xxxxxxxxxx>

Thanks x2!

>
> >
> > --
> > Pedro

--
Cheers, Lorenzo