Re: [PATCHv2 1/6] nvme-pci: Free tagset if no IO queues

Sagi Grimberg
2019-09-20T17:49:20Z

> +static void nvme_free_tagset(struct nvme_dev *dev)
> +{
> + if (dev->tagset.tags)
> + blk_mq_free_tag_set(&dev->tagset);
> + dev->ctrl.tagset = NULL;
> +}
> +

testing dev->tagset.tags and nulling dev->ctrl.tagset?
why not check dev->ctrl.tagset?