On 3/30/23 4:31 AM, Pavel Begunkov wrote: > We increase cache->nr_cached when we free into the cache but don't > decrease when we take from it, so in some time we'll get an empty > cache with cache->nr_cached larger than IO_ALLOC_CACHE_MAX, that fails > io_alloc_cache_put() and effectively disables caching. This should go into 6.3 and be marked for stable, but it's against the for-next branch. I have hand applied it as: https://git.kernel.dk/cgit/linux-block/commit/?h=io_uring-6.3&id=fd30d1cdcc4ff405fc54765edf2e11b03f2ed4f3 -- Jens Axboe