* [PATCH] nvme_fc: minor fixes on sqsize
@ 2018-03-06 4:55 James Smart
2018-03-07 15:46 ` Keith Busch
0 siblings, 1 reply; 3+ messages in thread
From: James Smart @ 2018-03-06 4:55 UTC (permalink / raw)
Corrected two outstanding issues in the transport around sqsize.
The first is the Create Connection LS, which is to use a sqvalue
which mirror what will be in the fabric connect, is sending count
rather than count - 1.
The second is the hw queue for the admin queue. It's using the
define that corresponds to the count - 1 value. It should be count.
Signed-off-by: James Smart <james.smart at broadcom.com>
---
drivers/nvme/host/fc.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/nvme/host/fc.c b/drivers/nvme/host/fc.c
index 8cacaccac90d..fc00c609c695 100644
--- a/drivers/nvme/host/fc.c
+++ b/drivers/nvme/host/fc.c
@@ -1323,7 +1323,7 @@ nvme_fc_connect_queue(struct nvme_fc_ctrl *ctrl, struct nvme_fc_queue *queue,
sizeof(struct fcnvme_lsdesc_cr_conn_cmd));
conn_rqst->connect_cmd.ersp_ratio = cpu_to_be16(ersp_ratio);
conn_rqst->connect_cmd.qid = cpu_to_be16(queue->qnum);
- conn_rqst->connect_cmd.sqsize = cpu_to_be16(qsize);
+ conn_rqst->connect_cmd.sqsize = cpu_to_be16(qsize - 1);
lsop->queue = queue;
lsreq->rqstaddr = conn_rqst;
@@ -2643,7 +2643,7 @@ nvme_fc_create_association(struct nvme_fc_ctrl *ctrl)
nvme_fc_init_queue(ctrl, 0);
ret = __nvme_fc_create_hw_queue(ctrl, &ctrl->queues[0], 0,
- NVME_AQ_BLK_MQ_DEPTH);
+ NVME_AQ_BLK_MQ_DEPTH + 1);
if (ret)
goto out_free_queue;
--
2.13.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [PATCH] nvme_fc: minor fixes on sqsize
2018-03-06 4:55 [PATCH] nvme_fc: minor fixes on sqsize James Smart
@ 2018-03-07 15:46 ` Keith Busch
2018-03-07 21:52 ` James Smart
0 siblings, 1 reply; 3+ messages in thread
From: Keith Busch @ 2018-03-07 15:46 UTC (permalink / raw)
On Mon, Mar 05, 2018@08:55:24PM -0800, James Smart wrote:
> ret = __nvme_fc_create_hw_queue(ctrl, &ctrl->queues[0], 0,
> - NVME_AQ_BLK_MQ_DEPTH);
> + NVME_AQ_BLK_MQ_DEPTH + 1);
A bit of a nit, but I think you'd prefer to use NVME_AQ_DEPTH here
instead of assuming the +1.
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH] nvme_fc: minor fixes on sqsize
2018-03-07 15:46 ` Keith Busch
@ 2018-03-07 21:52 ` James Smart
0 siblings, 0 replies; 3+ messages in thread
From: James Smart @ 2018-03-07 21:52 UTC (permalink / raw)
On 3/7/2018 7:46 AM, Keith Busch wrote:
> On Mon, Mar 05, 2018@08:55:24PM -0800, James Smart wrote:
>> ret = __nvme_fc_create_hw_queue(ctrl, &ctrl->queues[0], 0,
>> - NVME_AQ_BLK_MQ_DEPTH);
>> + NVME_AQ_BLK_MQ_DEPTH + 1);
> A bit of a nit, but I think you'd prefer to use NVME_AQ_DEPTH here
> instead of assuming the +1.
NP.?? I'll address it. I need to rework the patch as I found another
area when we tune for controller limits that isn't right either.
-- james
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2018-03-07 21:52 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-03-06 4:55 [PATCH] nvme_fc: minor fixes on sqsize James Smart
2018-03-07 15:46 ` Keith Busch
2018-03-07 21:52 ` James Smart
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox