Commit aa22c8e6 authored by Sagi Grimberg's avatar Sagi Grimberg

nvme-pci: set ctrl sqsize to the device q_depth

Align with what the rest of the transports are doing.
Signed-off-by: default avatarSagi Grimberg <sagi@grimberg.me>
parent 4fba4458
......@@ -2314,6 +2314,7 @@ static int nvme_pci_enable(struct nvme_dev *dev)
dev->q_depth = min_t(int, NVME_CAP_MQES(dev->ctrl.cap) + 1,
io_queue_depth);
dev->ctrl.sqsize = dev->q_depth - 1; /* 0's based queue depth */
dev->db_stride = 1 << NVME_CAP_STRIDE(dev->ctrl.cap);
dev->dbs = dev->bar + 4096;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment