Re: [PATCH v2] slab: fix slab accounting imbalance due to defer_deactivate_slab()
From: Alexei Starovoitov
Date: Fri Oct 24 2025 - 14:09:12 EST
On Fri, Oct 24, 2025 at 2:36 AM Harry Yoo <harry.yoo@xxxxxxxxxx> wrote:
>
> >
> > Note that deactivate_slab() contains VM_BUG_ON(!old.frozen);
> > we would have seen this triggered if we were passing unfrozen slabs to
> > (defer_)deactivate_slab(). I assume it's also why the "unlucky, discard"
> > code marks it frozen before calling defer_deactivate_slab() (and this patch
> > removes that).
Yes, exactly, since that's what deactivate_slab() wants to see.
> > So I think we're fine?
>
> Yes.
All my concerns were answered. I guess I understand it enough now to:
Acked-by: Alexei Starovoitov <ast@xxxxxxxxxx>