Re: [PATCH v1] mempool: fix min_nr exceeding the elements array after concurrent resizes

From: Harry Yoo

Date: Sun Oct 18 2026 - 11:15:42 EST


On Sun, Oct 18, 2026 at 05:01:52PM +0200, Vitaly Wool wrote:
> > [+Cc Christoph Hellwig and Vitaly Wool ]
>
> Thanks for CC'ing me on this.

No problem.

> How about we take my patch [1] instead since
> it isn't prone to this bug and is a nice optimization to the existing
> mempool_resize() at the same time?

It is not a good idea to squeeze a bug fix and an optimization
into one patch.

> [1] https://lore.kernel.org/linux-mm/20261013091408.1231786-1-vitaly.wool@xxxxxxxxxxx/
>
> ~Vitaly
>

--
Cheers,
Harry / Hyeonggon