@@ -49,6 +49,7 @@ struct nvme_ctrl {
struct kref kref;
int instance;
struct blk_mq_tag_set *tagset;
+ struct blk_mq_tag_set *admin_tagset;
struct list_head namespaces;
struct device *device; /* char device */
struct list_head node;
@@ -1261,6 +1261,7 @@ static int nvme_alloc_admin_tags(struct nvme_dev *dev)
blk_mq_free_tag_set(&dev->admin_tagset);
return -ENOMEM;
}
+ dev->ctrl.admin_tagset = &dev->admin_tagset;
if (!blk_get_queue(dev->ctrl.admin_q)) {
nvme_dev_remove_admin(dev);
dev->ctrl.admin_q = NULL;
We will need it in order to move the IO failure helpers to the core. Signed-off-by: Sagi Grimberg <sagig@mellanox.com> --- drivers/nvme/host/nvme.h | 1 + drivers/nvme/host/pci.c | 1 + 2 files changed, 2 insertions(+), 0 deletions(-)