Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7e849dd9 authored by Christoph Hellwig's avatar Christoph Hellwig Committed by Jens Axboe
Browse files

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: default avatarMing Lei <ming.lei@redhat.com>
Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent 5aceaeb2
Loading
Loading
Loading
Loading
+1 −5
Original line number Diff line number Diff line
@@ -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;
		}

		/*