summary refs log tree commit diff
path: root/net/ipv6
diff options
context:
space:
mode:
authorPavel Begunkov <asml.silence@gmail.com>2023-03-30 06:52:38 -0600
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2023-04-06 12:10:52 +0200
commitd67b3cdacac911958c6353f043fe98d42c84f5ad (patch)
treebd7b4b1dff698b1f2bdb265b616475a1109f3db2 /net/ipv6
parentef329fa764c3c27f43db0f7c57adbe84e9a07f00 (diff)
downloadlinux-d67b3cdacac911958c6353f043fe98d42c84f5ad.tar.gz
io_uring: fix poll/netmsg alloc caches
commit fd30d1cdcc4ff405fc54765edf2e11b03f2ed4f3 upstream.

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.

Fixes: 9b797a37c4bd8 ("io_uring: add abstraction around apoll cache")
Cc: stable@vger.kernel.org
Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'net/ipv6')
0 files changed, 0 insertions, 0 deletions