Re: Re: [PATCH] mempool: optimize mempool resizing

From: Vitaly Wool

Date: Sat Oct 17 2026 - 05:13:19 EST


> > Imagine you have a mempool with 10000 elements, and you have to reduce it to 3000. Then
> > if you at some point want to go back to 10000, you'll end up reallocating the elements

> Who is "we" and where is the code? This is a highly unusual, not to
> say most like broken usage of mempools. If you need changes to support
> such a use case you should include a link to the intree user (or bundle
> it with the submission of the new code).

This situation may well happen in the block layer (zoned). The numbers will
be different but they were arbitrarily chosen in the example above anyway.