blk-mq: allow the driver to pass in a queue mapping
authorChristoph Hellwig <hch@lst.de>
Wed, 14 Sep 2016 14:18:55 +0000 (16:18 +0200)
committerJens Axboe <axboe@fb.com>
Thu, 15 Sep 2016 14:42:03 +0000 (08:42 -0600)
commitda695ba236b993f07a540d35c17f271ef08c89f3
treebcf5c0624f3e3889b8c1284f1965cf90b265b78e
parent7d7e0f90b70f6c5367c2d1c9a7e87dd228bd0816
blk-mq: allow the driver to pass in a queue mapping

This allows drivers specify their own queue mapping by overriding the
setup-time function that builds the mq_map.  This can be used for
example to build the map based on the MSI-X vector mapping provided
by the core interrupt layer for PCI devices.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Keith Busch <keith.busch@intel.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
block/blk-mq-cpumap.c
block/blk-mq.c
block/blk-mq.h
include/linux/blk-mq.h