summaryrefslogtreecommitdiff
path: root/fs/ioprio.c
diff options
context:
space:
mode:
authorMilan Broz <mbroz@redhat.com>2006-09-04 15:37:57 +0200
committerJens Axboe <axboe@nelson.home.kernel.dk>2006-09-30 20:52:33 +0200
commit50be345560f1ffdcb15cc0e146416b80529a2ef2 (patch)
tree056278d82ea7fcbd26d9cc95c806d3978bbbb56e /fs/ioprio.c
parentbcfd8d36151e531e1c6c731f1fbf792509a1c494 (diff)
downloadkernel-common-50be345560f1ffdcb15cc0e146416b80529a2ef2.tar.gz
kernel-common-50be345560f1ffdcb15cc0e146416b80529a2ef2.tar.bz2
kernel-common-50be345560f1ffdcb15cc0e146416b80529a2ef2.zip
[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: Milan Broz <mbroz@redhat.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'fs/ioprio.c')
0 files changed, 0 insertions, 0 deletions