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

From: Vitaly Wool

Date: Sun Oct 18 2026 - 12:10:31 EST


> > 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.

Generally speaking, yes. But that patch had been submitted before the fix
popped up, so there was no sqeezing per se. It's just a better way of doing
things.

~Vitaly