diff options
| author | Pavel Begunkov <[email protected]> | 2023-03-30 12:52:38 +0000 |
|---|---|---|
| committer | Jens Axboe <[email protected]> | 2023-03-30 12:53:42 +0000 |
| commit | fd30d1cdcc4ff405fc54765edf2e11b03f2ed4f3 (patch) | |
| tree | 418e351d7b94cff15ac165353e2064b5ee0b3a0a /tools/perf/scripts/python/netdev-times.py | |
| parent | io_uring/rsrc: fix rogue rsrc node grabbing (diff) | |
| download | kernel-fd30d1cdcc4ff405fc54765edf2e11b03f2ed4f3.tar.gz kernel-fd30d1cdcc4ff405fc54765edf2e11b03f2ed4f3.zip | |
io_uring: fix poll/netmsg alloc caches
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: [email protected]
Signed-off-by: Pavel Begunkov <[email protected]>
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/netdev-times.py')
0 files changed, 0 insertions, 0 deletions
