[PATCH 0/2] Allow drivers to tap into tags initialization

From: Matias Bjorling
Date: Mon Oct 28 2013 - 06:00:48 EST

Patches based upon Axboe's blk-mq/core branch

These two patches enable a driver to control if tags are initialized by blk-mq
or itself. This allows a driver to map multiple struct blk_mq_tags to multiple
hardware and share tags.

This is for example used by the NVMe, that has a limited number of queues,
shared by multiple request queues.

* Changed blk_mq_init_tags_shared to blk_mq_tags_get.
* Moved to using a flag for defining when driver handles tags initialization.

Matias Bjorling (2):
blk-mq: allow request queues to share tags map
blk-mq: add maps_tags fn and add usage

block/blk-mq-tag.c | 22 +++++++++++++++++++++-
block/blk-mq.c | 18 ++++++++++--------
include/linux/blk-mq.h | 6 ++++++
3 files changed, 37 insertions(+), 9 deletions(-)


To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/