From: Sagi Grimberg Date: Thu, 22 Aug 2019 17:51:17 +0000 (-0700) Subject: nvme-pci: set ctrl sqsize to the device q_depth X-Git-Tag: v5.15~5523^2~45^2~26 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=aa22c8e6650d29a00196087caa2bbb32dc6117bc;p=platform%2Fkernel%2Flinux-starfive.git nvme-pci: set ctrl sqsize to the device q_depth Align with what the rest of the transports are doing. Signed-off-by: Sagi Grimberg --- diff --git a/drivers/nvme/host/pci.c b/drivers/nvme/host/pci.c index 45a80b7..530104d 100644 --- a/drivers/nvme/host/pci.c +++ b/drivers/nvme/host/pci.c @@ -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;