summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJianchao Wang <jianchao.w.wang@oracle.com>2018-12-24 04:15:53 +0100
committerChristoph Hellwig <hch@lst.de>2019-01-09 19:47:02 +0100
commitc61e678f30da733a1b7fdd5983d0770de2e6009c (patch)
treeacf33c3ebf5a4f274ac00fab9f321cfd07557974
parentblock: doc: add slice_idle_us to bfq documentation (diff)
downloadlinux-c61e678f30da733a1b7fdd5983d0770de2e6009c.tar.xz
linux-c61e678f30da733a1b7fdd5983d0770de2e6009c.zip
nvme-pci: fix the wrong setting of nr_maps
We only set the nr_maps to 3 if poll queues are supported. Signed-off-by: Jianchao Wang <jianchao.w.wang@oracle.com> Signed-off-by: Christoph Hellwig <hch@lst.de>
-rw-r--r--drivers/nvme/host/pci.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/nvme/host/pci.c b/drivers/nvme/host/pci.c
index 5a0bf6a24d50..cc65fa8a537b 100644
--- a/drivers/nvme/host/pci.c
+++ b/drivers/nvme/host/pci.c
@@ -2294,7 +2294,6 @@ static int nvme_dev_add(struct nvme_dev *dev)
dev->tagset.nr_maps = 2; /* default + read */
if (dev->io_queues[HCTX_TYPE_POLL])
dev->tagset.nr_maps++;
- dev->tagset.nr_maps = HCTX_MAX_TYPES;
dev->tagset.timeout = NVME_IO_TIMEOUT;
dev->tagset.numa_node = dev_to_node(dev->dev);
dev->tagset.queue_depth =