Re: [PATCH v2] mm: vmalloc: fix vmap_purge_lock livelock under memory pressure

From: Uladzislau Rezki

Date: Tue Sep 01 2026 - 12:39:26 EST


On Mon, Aug 31, 2026 at 06:42:52PM -0700, Andrew Morton wrote:
> On Mon, 31 Aug 2026 11:54:22 +0200 Uladzislau Rezki <urezki@xxxxxxxxx> wrote:
>
> > But, i think we can overt mutex_lock() into mutex_trylock() just only
> > in the:
> >
> > static unsigned long
> > vmap_node_shrink_scan(struct shrinker *shrink, struct shrink_control *sc)
> > {
> > struct vmap_node *vn;
> >
> > guard(mutex)(&vmap_purge_lock);
> > for_each_vmap_node(vn)
> > decay_va_pool_node(vn, true);
> >
> > return SHRINK_STOP;
> > }
>
> I *think* that means we can expect a v3.
>
> Ho hum. I guess I'll queue v2, under the assumption that my
> assumptions are usually wrong.
>
Yep :)

--
Uladzislau Rezki