diff options
author | Mike Snitzer <snitzer@redhat.com> | 2015-03-11 15:01:09 -0400 |
---|---|---|
committer | Mike Snitzer <snitzer@redhat.com> | 2015-04-15 12:10:17 -0400 |
commit | 17e149b8f73ba116e71e25930dd6f2eb3828792d (patch) | |
tree | 6407112dbb113ffeebfd0620df27d4f67cd27ed1 /drivers/md/dm.h | |
parent | 022333427a8aa4ccb318a9db90cea4e69ca1826b (diff) |
dm: add 'use_blk_mq' module param and expose in per-device ro sysfs attr
Request-based DM's blk-mq support defaults to off; but a user can easily
change the default using the dm_mod.use_blk_mq module/boot option.
Also, you can check what mode a given request-based DM device is using
with: cat /sys/block/dm-X/dm/use_blk_mq
This change enabled further cleanup and reduced work (e.g. the
md->io_pool and md->rq_pool isn't created if using blk-mq).
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Diffstat (limited to 'drivers/md/dm.h')
-rw-r--r-- | drivers/md/dm.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/md/dm.h b/drivers/md/dm.h index 5522422cc6c4..6123c2bf9150 100644 --- a/drivers/md/dm.h +++ b/drivers/md/dm.h | |||
@@ -211,6 +211,8 @@ int dm_kobject_uevent(struct mapped_device *md, enum kobject_action action, | |||
211 | void dm_internal_suspend(struct mapped_device *md); | 211 | void dm_internal_suspend(struct mapped_device *md); |
212 | void dm_internal_resume(struct mapped_device *md); | 212 | void dm_internal_resume(struct mapped_device *md); |
213 | 213 | ||
214 | bool dm_use_blk_mq(struct mapped_device *md); | ||
215 | |||
214 | int dm_io_init(void); | 216 | int dm_io_init(void); |
215 | void dm_io_exit(void); | 217 | void dm_io_exit(void); |
216 | 218 | ||
@@ -220,7 +222,8 @@ void dm_kcopyd_exit(void); | |||
220 | /* | 222 | /* |
221 | * Mempool operations | 223 | * Mempool operations |
222 | */ | 224 | */ |
223 | struct dm_md_mempools *dm_alloc_md_mempools(unsigned type, unsigned integrity, unsigned per_bio_data_size); | 225 | struct dm_md_mempools *dm_alloc_md_mempools(struct mapped_device *md, unsigned type, |
226 | unsigned integrity, unsigned per_bio_data_size); | ||
224 | void dm_free_md_mempools(struct dm_md_mempools *pools); | 227 | void dm_free_md_mempools(struct dm_md_mempools *pools); |
225 | 228 | ||
226 | /* | 229 | /* |