blk-mq: split out tag initialization, support shared tags
authorChristoph Hellwig <hch@lst.de>
Tue, 15 Apr 2014 20:14:00 +0000 (14:14 -0600)
committerJens Axboe <axboe@fb.com>
Tue, 15 Apr 2014 20:18:02 +0000 (14:18 -0600)
commit24d2f90309b23f2cfe016b2aebc5f0d6e01c57fd
tree10307829129eb8f96facbb89fefbba3c0032fb46
parented44832dea8a74f909e0187f350201402927f5e5
blk-mq: split out tag initialization, support shared tags

Add a new blk_mq_tag_set structure that gets set up before we initialize
the queue.  A single blk_mq_tag_set structure can be shared by multiple
queues.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Modular export of blk_mq_{alloc,free}_tagset added by me.

Signed-off-by: Jens Axboe <axboe@fb.com>
block/blk-mq-cpumap.c
block/blk-mq-tag.c
block/blk-mq-tag.h
block/blk-mq.c
block/blk-mq.h
drivers/block/null_blk.c
drivers/block/virtio_blk.c
include/linux/blk-mq.h