summaryrefslogtreecommitdiffstats
path: root/drivers/nvme
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2015-11-16 12:40:02 +0100
committerJens Axboe <axboe@fb.com>2015-12-22 09:38:34 -0700
commit4680072003df14230e9eeeeefb617401012234a5 (patch)
treef3f761a6141d537f991eaa10a7479319be04e75f /drivers/nvme
parent4b9d5b151046ff717819864f93cb8e012b347bce (diff)
downloadop-kernel-dev-4680072003df14230e9eeeeefb617401012234a5.zip
op-kernel-dev-4680072003df14230e9eeeeefb617401012234a5.tar.gz
nvme: fix admin queue depth
The number in tag_set->queue depth includes the reserved tags. Signed-off-by: Christoph Hellwig <hch@lst.de> Acked-by: Keith Busch <keith.busch@intel.com> Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'drivers/nvme')
-rw-r--r--drivers/nvme/host/pci.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/nvme/host/pci.c b/drivers/nvme/host/pci.c
index c83f0d8..686a4e2 100644
--- a/drivers/nvme/host/pci.c
+++ b/drivers/nvme/host/pci.c
@@ -1431,7 +1431,7 @@ static int nvme_alloc_admin_tags(struct nvme_dev *dev)
if (!dev->ctrl.admin_q) {
dev->admin_tagset.ops = &nvme_mq_admin_ops;
dev->admin_tagset.nr_hw_queues = 1;
- dev->admin_tagset.queue_depth = NVME_AQ_DEPTH - 1;
+ dev->admin_tagset.queue_depth = NVME_AQ_DEPTH;
dev->admin_tagset.reserved_tags = 1;
dev->admin_tagset.timeout = ADMIN_TIMEOUT;
dev->admin_tagset.numa_node = dev_to_node(dev->dev);
OpenPOWER on IntegriCloud