]> git.karo-electronics.de Git - karo-tx-linux.git/commit
dm: add reserved_rq_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>
Wed, 18 Sep 2013 18:51:05 +0000 (14:51 -0400)
commitdfd732129722acdb571cad3556682ca21d4a52ed
tree99d1c3b946ad71af42834ff88da6a4553c98c7b0
parent6236655917227e200a25a92bfdebe8aac65ff8d6
dm: add reserved_rq_based_ios module parameter

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

The default value is RESERVED_REQUEST_BASED_IOS (256).  The maximum
allowed value is RESERVED_MAX_IOS (1024).

Export dm_get_reserved_rq_based_ios() for use by DM targets and core
code.  Switch to sizing dm-mpath's mempool using DM core's configurable
'reserved_rq_based_ios'.

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-mpath.c
drivers/md/dm.c
drivers/md/dm.h