All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] nvme-pci: fix build error for commit:bc565c15a4fa
@ 2017-07-10 10:14 weiping zhang
  2017-07-10 10:17 ` Sagi Grimberg
  0 siblings, 1 reply; 2+ messages in thread
From: weiping zhang @ 2017-07-10 10:14 UTC (permalink / raw)


fix build error for:
bc565c15a4fa nvme-pci: add module parameter for io queue depth

Signed-off-by: weiping zhang <zhangweiping at didichuxing.com>
---
 drivers/nvme/host/pci.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/nvme/host/pci.c b/drivers/nvme/host/pci.c
index 8470503..48d3ed3 100644
--- a/drivers/nvme/host/pci.c
+++ b/drivers/nvme/host/pci.c
@@ -1912,7 +1912,8 @@ static int nvme_pci_enable(struct nvme_dev *dev)
 
 	dev->ctrl.cap = lo_hi_readq(dev->bar + NVME_REG_CAP);
 
-	dev->q_depth = min_t(int, NVME_CAP_MQES(cap) + 1, io_queue_depth);
+	dev->q_depth = min_t(int, NVME_CAP_MQES(dev->ctrl.cap) + 1,
+				io_queue_depth);
 	dev->db_stride = 1 << NVME_CAP_STRIDE(dev->ctrl.cap);
 	dev->dbs = dev->bar + 4096;
 
-- 
2.9.4

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [PATCH] nvme-pci: fix build error for commit:bc565c15a4fa
  2017-07-10 10:14 [PATCH] nvme-pci: fix build error for commit:bc565c15a4fa weiping zhang
@ 2017-07-10 10:17 ` Sagi Grimberg
  0 siblings, 0 replies; 2+ messages in thread
From: Sagi Grimberg @ 2017-07-10 10:17 UTC (permalink / raw)


Done

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-07-10 10:17 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-07-10 10:14 [PATCH] nvme-pci: fix build error for commit:bc565c15a4fa weiping zhang
2017-07-10 10:17 ` Sagi Grimberg

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.