From: james.smart@broadcom.com (James Smart) Date: Mon, 5 Nov 2018 11:34:05 -0800 Subject: [PATCH] nvme-rdma: Don't fail the controller if only part of the queues fail to connect In-Reply-To: <1541349434-31640-1-git-send-email-israelr@mellanox.com> References: <1541349434-31640-1-git-send-email-israelr@mellanox.com> Message-ID: On 11/4/2018 8:37 AM, Israel Rukshin wrote: > From: Sagi Grimberg > > blk-mq tells us to skip unmapped queues but we fail the controller altogether. > > Signed-off-by: Israel Rukshin > Reviewed-by: Max Gurtovoy > --- > drivers/nvme/host/rdma.c | 19 ++++++++++++++++--- > 1 file changed, 16 insertions(+), 3 deletions(-) > This sounds odd.?? Why aren't you concerned that io queues are not connecting ?? Are there any log messages hinting at the failures ? any way someone looking at the controller knows how many queues were actually created ? ? I would assume any failure is significant and should be visible, and it's worthwhile knowing whether this is a consistent failure or a random failure. and what the failure was. As far as continuing on in spite of failure - ok, but the target has already been told, via SET FEATURES, to prepare (thus may allocate resources) for X number of io queues, so minimally its a condition where the target may be severely wasting resources which may affect it's scale out ability.? I assume the transport should should be resetting the controller and self-tuning the max queue count so that it is reduced to what is being used.? Granted, this assumes the error was consistent and for the same reason.? If it was an inconsistent error, its ok to continue without resetting, but the transport should be very verbose about the state it's in and why. It appears the patch doesn't save the connected queue count, which means the blk-mq nr_hw_queues is not in sync with the new count. What happens on those cpu's that select a hctx that is on a queue that isn't connected ??? I assume the Q_LIVE bit has the queue_rq routine continually bouncing them until they fail ? Note: For now, where queues are only seen for cpu affinity, the choice to "not use it" may not be a big deal. But in the future, queues may be related to specific activities/features and this choice can't be so arbitrary. -- james