Skip to content
Snippets Groups Projects
Commit 9731bc98 authored by Jens Axboe's avatar Jens Axboe
Browse files

io_uring: impose max limit on apoll cache


Caches like this tend to grow to the peak size, and then never get any
smaller. Impose a max limit on the size, to prevent it from growing too
big.

A somewhat randomly chosen 512 is the max size we'll allow the cache
to get. If a batch of frees come in and would bring it over that, we
simply start kfree'ing the surplus.

Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent 9b797a37
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment