blk-mq: Introduce blk_mq_reinit_tagset
authorSagi Grimberg <sagi@grimberg.me>
Wed, 6 Jul 2016 12:55:48 +0000 (21:55 +0900)
committerJens Axboe <axboe@fb.com>
Fri, 8 Jul 2016 14:38:49 +0000 (08:38 -0600)
commit486cf9899e311838b6ab95d19ff87c4da44d6508
treee80448aaa15469f06c1215f46fd1494fc7ab9761
parentd9e46d5d7cb0d27a07f6c33a90ac6b4b522a5657
blk-mq: Introduce blk_mq_reinit_tagset

The new nvme-rdma driver will need to reinitialize all the tags as part of
the error recovery procedure (realloc the tag memory region). Add a helper
in blk-mq for it that can iterate over all requests in a tagset to make
this easier.

Signed-off-by: Sagi Grimberg <sagi@grimberg.me>
Tested-by: Ming Lin <ming.l@ssi.samsung.com>
Reviewed-by: Stephen Bates <Stephen.Bates@pmcs.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Steve Wise <swise@opengridcomputing.com>
Tested-by: Steve Wise <swise@opengridcomputing.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
block/blk-mq-tag.c
include/linux/blk-mq.h