]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
dm: add reserved_bio_based_ios module parameter
authorMike Snitzer <snitzer@redhat.com>
Thu, 12 Sep 2013 22:06:12 +0000 (18:06 -0400)
committerMike Snitzer <snitzer@redhat.com>
Mon, 23 Sep 2013 14:42:24 +0000 (10:42 -0400)
commite8603136cb04ec2d0c9b4b5be7a071fc003cb399
treee642b195034f281eeb76de62f5bcf3deb2985de1
parentf47908269fb53d522a956b78612a0037f5faf8e7
dm: add reserved_bio_based_ios module parameter

Allow user to change the number of IOs that are reserved by
bio-based DM's mempools by writing to this file:
/sys/module/dm_mod/parameters/reserved_bio_based_ios

The default value is RESERVED_BIO_BASED_IOS (16).  The maximum allowed
value is RESERVED_MAX_IOS (1024).

Export dm_get_reserved_bio_based_ios() for use by DM targets and core
code.  Switch to sizing dm-io's mempool and bioset using DM core's
configurable 'reserved_bio_based_ios'.

Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Signed-off-by: Frank Mayhar <fmayhar@google.com>
drivers/md/dm-io.c
drivers/md/dm.c
drivers/md/dm.h