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>
Mon, 23 Sep 2013 14:42:23 +0000 (10:42 -0400)
commit6cfa58573f9b4a543005baa002e137820504c7af
treecb4f5247d973a6133aae4191a30c50ad01d33a7b
parentb60ab990ccdf34b0159bf5ff52f4acee7c940d78
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