diff options
author | Christoph Hellwig <hch@lst.de> | 2018-12-17 06:16:27 -0500 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2018-12-17 07:44:45 -0500 |
commit | 7e849dd9cf37bc52aff9b5236377c405040c959c (patch) | |
tree | 27ee84a51ccafaabec890421d4c9a80721882da3 | |
parent | 5aceaeb26394538858a9dbae5830d628469a44cf (diff) |
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>
-rw-r--r-- | drivers/nvme/host/pci.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/drivers/nvme/host/pci.c b/drivers/nvme/host/pci.c index fb9d8270f32c..698b350b38cf 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) | |||
496 | map->nr_queues = dev->io_queues[i]; | 496 | map->nr_queues = dev->io_queues[i]; |
497 | if (!map->nr_queues) { | 497 | if (!map->nr_queues) { |
498 | BUG_ON(i == HCTX_TYPE_DEFAULT); | 498 | BUG_ON(i == HCTX_TYPE_DEFAULT); |
499 | 499 | continue; | |
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); | ||
504 | } | 500 | } |
505 | 501 | ||
506 | /* | 502 | /* |