From: Jianchao Wang Date: Mon, 24 Dec 2018 03:15:53 +0000 (+0800) Subject: nvme-pci: fix the wrong setting of nr_maps X-Git-Tag: v5.4-rc1~1718^2~26^2~10 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c61e678f30da733a1b7fdd5983d0770de2e6009c;p=platform%2Fkernel%2Flinux-rpi.git 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 Signed-off-by: Christoph Hellwig --- diff --git a/drivers/nvme/host/pci.c b/drivers/nvme/host/pci.c index 5a0bf6a..cc65fa8 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 =