bio: shrink max number of pcpu cached bios
authorPavel Begunkov <asml.silence@gmail.com>
Wed, 2 Nov 2022 15:18:23 +0000 (15:18 +0000)
committerJens Axboe <axboe@kernel.dk>
Wed, 16 Nov 2022 16:44:26 +0000 (09:44 -0700)
commit42b2b2fb6ecf1cc11eb7e75782dd7a7a17e6d958
tree121e15fc1faec4ab4dec4b3221d78d7b308b56ed
parentb99182c501c3dedeba4c9e6c92a60df1a2fee119
bio: shrink max number of pcpu cached bios

The downside of the bio pcpu cache is that bios of a cpu will be never
freed unless there is new I/O issued from that cpu. We currently keep
max 512 bios, which feels too much, half it.

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/bc198e8efb27d8c740d80c8ce477432729075096.1667384020.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/bio.c