From: Christoph Hellwig Date: Mon, 17 Dec 2018 11:16:27 +0000 (+0100) Subject: nvme-pci: don't share queue maps X-Git-Tag: v5.0-rc1~52^2~37 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=7e849dd9cf37bc52aff9b5236377c405040c959c;p=thirdparty%2Fkernel%2Flinux.git nvme-pci: don't share queue maps Now that the block layer checks if a queue map has any queues inside it there is no more reason to duplicate the maps for the non-default types. Reviewed-by: Ming Lei Signed-off-by: Christoph Hellwig Signed-off-by: Jens Axboe --- diff --git a/drivers/nvme/host/pci.c b/drivers/nvme/host/pci.c index fb9d8270f32cf..698b350b38cff 100644 --- a/drivers/nvme/host/pci.c +++ b/drivers/nvme/host/pci.c @@ -496,11 +496,7 @@ static int nvme_pci_map_queues(struct blk_mq_tag_set *set) map->nr_queues = dev->io_queues[i]; if (!map->nr_queues) { BUG_ON(i == HCTX_TYPE_DEFAULT); - - /* shared set, resuse read set parameters */ - map->nr_queues = dev->io_queues[HCTX_TYPE_DEFAULT]; - qoff = 0; - offset = queue_irq_offset(dev); + continue; } /*