]> git.karo-electronics.de Git - karo-tx-linux.git/commit
dm: add 'use_blk_mq' module param and expose in per-device ro sysfs attr
authorMike Snitzer <snitzer@redhat.com>
Wed, 11 Mar 2015 19:01:09 +0000 (15:01 -0400)
committerMike Snitzer <snitzer@redhat.com>
Tue, 31 Mar 2015 16:06:30 +0000 (12:06 -0400)
commitf64e54413626da7ad01a0f34922c0011bc3c3b4b
treeee29627f2b7e38365dc0aa78275797da4f11c602
parent1efbe676a16234e53aa9cfed78e85c228f963478
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>
Documentation/ABI/testing/sysfs-block-dm
drivers/md/Kconfig
drivers/md/dm-sysfs.c
drivers/md/dm-table.c
drivers/md/dm.c
drivers/md/dm.h