]> git.karo-electronics.de Git - karo-tx-linux.git/commit
dm: lower bio-based mempool reservation
authorMike Snitzer <snitzer@redhat.com>
Thu, 12 Sep 2013 22:06:11 +0000 (18:06 -0400)
committerMike Snitzer <snitzer@redhat.com>
Wed, 18 Sep 2013 18:51:05 +0000 (14:51 -0400)
commit6236655917227e200a25a92bfdebe8aac65ff8d6
tree9f61fd3203077da4bb6a39254282666aedb7bfd6
parentbbf3f8cbdc139860a14c4fc2bb25432427045aaa
dm: lower bio-based mempool reservation

Bio-based device mapper processing doesn't need larger mempools (like
request-based DM does), so lower the number of reserved entries for
bio-based operation.  16 was already used for bio-based DM's bioset
but mistakenly wasn't used for it's _io_cache.

Formalize difference between bio-based and request-based defaults by
introducing RESERVED_BIO_BASED_IOS and RESERVED_REQUEST_BASED_IOS.

(based on older code from Mikulas Patocka)

Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Signed-off-by: Frank Mayhar <fmayhar@google.com>
Acked-by: Mikulas Patocka <mpatocka@redhat.com>
drivers/md/dm.c