On 10/25/18 11:16 PM, Jens Axboe wrote:
Add support for the tag set carrying multiple queue maps, and
for the driver to inform blk-mq how many it wishes to support
through setting set->nr_maps.
This adds an mq_ops helper for drivers that support more than 1
map, mq_ops->flags_to_type(). The function takes request/bio flags
and CPU, and returns a queue map index for that. We then use the
type information in blk_mq_map_queue() to index the map set.
Signed-off-by: Jens Axboe <[email protected]>
---
block/blk-mq.c | 85 ++++++++++++++++++++++++++++--------------
block/blk-mq.h | 19 ++++++----
include/linux/blk-mq.h | 7 ++++
3 files changed, 76 insertions(+), 35 deletions(-)
Reviewed-by: Hannes Reinecke <[email protected]>
Cheers,
Hannes