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>
Showing
- Documentation/ABI/testing/sysfs-block-dm 8 additions, 0 deletionsDocumentation/ABI/testing/sysfs-block-dm
- drivers/md/Kconfig 11 additions, 0 deletionsdrivers/md/Kconfig
- drivers/md/dm-sysfs.c 9 additions, 0 deletionsdrivers/md/dm-sysfs.c
- drivers/md/dm-table.c 3 additions, 3 deletionsdrivers/md/dm-table.c
- drivers/md/dm.c 41 additions, 12 deletionsdrivers/md/dm.c
- drivers/md/dm.h 4 additions, 1 deletiondrivers/md/dm.h
Loading
Please register or sign in to comment