Skip to content

Commit 7e849dd

Browse files
Christoph Hellwigaxboe
authored andcommitted
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 <ming.lei@redhat.com> Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Jens Axboe <axboe@kernel.dk>
1 parent 5aceaeb commit 7e849dd

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

drivers/nvme/host/pci.c

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -496,11 +496,7 @@ static int nvme_pci_map_queues(struct blk_mq_tag_set *set)
496496
map->nr_queues = dev->io_queues[i];
497497
if (!map->nr_queues) {
498498
BUG_ON(i == HCTX_TYPE_DEFAULT);
499-
500-
/* shared set, resuse read set parameters */
501-
map->nr_queues = dev->io_queues[HCTX_TYPE_DEFAULT];
502-
qoff = 0;
503-
offset = queue_irq_offset(dev);
499+
continue;
504500
}
505501

506502
/*

0 commit comments

Comments
 (0)