Skip to content
Snippets Groups Projects
Commit 50be3455 authored by Milan Broz's avatar Milan Broz Committed by Jens Axboe
Browse files

[PATCH] fix creating zero sized bio mempools in low memory system


In the very low memory systems is in the init_bio call
scale parameter set to zero and it leads to creating
zero sized mempool.

This patch prevents pool_entries parameter become zero,
so the created pool have at least 1 entry.

Mempool with 0 entries lead to incorrect behaviour
of mempool_free. (Alloc requests are not waken up
and system stalls in mempool_alloc->ioschedule).

Signed-off-by: default avatarMilan Broz <mbroz@redhat.com>
Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent bcfd8d36
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