Received: by 2002:a05:6a10:c7c6:0:0:0:0 with SMTP id h6csp1541005pxy; Mon, 2 Aug 2021 04:29:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxpQvIXNzowxig3iMQpoZIIExT752HvUEnawDC+pJG9OlPfSjaKOZvBAyuP/6ALzrIm4Big X-Received: by 2002:a02:b799:: with SMTP id f25mr5174128jam.143.1627903750577; Mon, 02 Aug 2021 04:29:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627903750; cv=none; d=google.com; s=arc-20160816; b=Mv8p9lRw9DQ53JfbjAZK2noKyjjHc1+1d3HacIPlJgr+dYPamOpHZGY5CxDhqrNmuU npRTp0IVgb6FLDLX1IAG+u9tlJ6k+o9+EQkIaoTqpB7BHF/6ueFM8WxfDt2DvN89SnzL DKlk3dBsb1dRzB/ENTyou/wrNyXVZxAwEolTnwRKKnELCnqmq/fmVqrT6pmLs1+/bP3I SP7lHZGp3paT8Vo6gLt1Xg8Auc3zygL88OLK3aRZ36WtP2yZRNSlZmtQA3gRc51KWGL4 I9D9B3DJw4b4zN/RcrUYYBJqJUY9/XuLhnKWARv4wyhMD+A8yEGciBUbZpvwqLCzVYOc AfrQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature:dkim-signature; bh=CzLqnDMPgV4X2TVtB9CFgIWVEvkNhP+8WThUlGoV9nM=; b=V6kATNQlGqno+0Lwc4/qHrrM7L7MbOqK0ymdusYlx1fYO1r7yY+qqf9fXZDPttzYWf F9OjVLRiZHaDr5NBYXWvo2oiLG7vnvnQ8065MVcYBLOWFWHthAxKQ//ASlfwHVTk5PZ8 PpDjBJ8dl313d3fE9aHWjBlyypWnz2zc15HLcUBSwjXWxCpGjhllczKtU97BfrqPvOXt VNlf9QBYIUGAmKM90epwTYtmAvAbJO8CsuXfDt6OtAiawcB+lbYwn0Tr8EoFFwuK0O4D uO6+N8Yau77wvL1Xjwh91G1I2Z7x2ZHgLloHQXx5XRa8fo/to4oyIY/JCJWdx4cWYrmd HVZQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=id3afhjH; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f2si13031203jat.114.2021.08.02.04.28.59; Mon, 02 Aug 2021 04:29:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=id3afhjH; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233554AbhHBL1l (ORCPT + 99 others); Mon, 2 Aug 2021 07:27:41 -0400 Received: from smtp-out2.suse.de ([195.135.220.29]:51306 "EHLO smtp-out2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233417AbhHBL1T (ORCPT ); Mon, 2 Aug 2021 07:27:19 -0400 Received: from relay2.suse.de (relay2.suse.de [149.44.160.134]) by smtp-out2.suse.de (Postfix) with ESMTP id 1832E1FF7F; Mon, 2 Aug 2021 11:27:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1627903628; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=CzLqnDMPgV4X2TVtB9CFgIWVEvkNhP+8WThUlGoV9nM=; b=id3afhjHrLuLzLNg3bp7J8byiyMuh8CFuwIGCFN6otealbcZu5ejOF0v0isNETl7pX95LT yqRV3/bSa/bNsuXh239UDdOO0VvdKkvVvv1ltk5TcFB8EW+cL9y4dhEFx6fS0r4BpBOSNI CROFn6rjmZerSr4OGTq4z1kt4euhP4E= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1627903628; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=CzLqnDMPgV4X2TVtB9CFgIWVEvkNhP+8WThUlGoV9nM=; b=mpOw64a8qGPcPLO0gAVPTqrEPqMvcIibjtGoa0VLDjHoaavLzOwGP22JXZ7jrfkQMWJPoh 6M2XbU6Dh2hnRkBA== Received: from adalid.arch.suse.de (adalid.arch.suse.de [10.161.8.13]) by relay2.suse.de (Postfix) with ESMTP id 08017A3BCB; Mon, 2 Aug 2021 11:27:08 +0000 (UTC) Received: by adalid.arch.suse.de (Postfix, from userid 17828) id 030F9518C0B4; Mon, 2 Aug 2021 13:27:08 +0200 (CEST) From: Daniel Wagner To: linux-nvme@lists.infradead.org Cc: linux-kernel@vger.kernel.org, James Smart , Keith Busch , Ming Lei , Sagi Grimberg , Hannes Reinecke , Wen Xiong , Daniel Wagner Subject: [PATCH v4 8/8] nvme-rdma: Unfreeze queues on reconnect Date: Mon, 2 Aug 2021 13:26:58 +0200 Message-Id: <20210802112658.75875-9-dwagner@suse.de> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20210802112658.75875-1-dwagner@suse.de> References: <20210802112658.75875-1-dwagner@suse.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org During the queue teardown in nvme_rdma_teardown_io_queues() freeze is called unconditionally. When we reconnect we need to pair the freeze with an unfreeze to avoid hanging I/Os. For newly created connection this is not needed. Fixes: 9f98772ba307 ("nvme-rdma: fix controller reset hang during traffic") Signed-off-by: Daniel Wagner --- drivers/nvme/host/rdma.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/nvme/host/rdma.c b/drivers/nvme/host/rdma.c index de2a8950d282..21a8a5353af0 100644 --- a/drivers/nvme/host/rdma.c +++ b/drivers/nvme/host/rdma.c @@ -901,6 +901,8 @@ static int nvme_rdma_configure_admin_queue(struct nvme_rdma_ctrl *ctrl, error = PTR_ERR(ctrl->ctrl.admin_q); goto out_cleanup_fabrics_q; } + } else { + nvme_unfreeze(&ctrl->ctrl); } error = nvme_rdma_start_queue(ctrl, 0); -- 2.29.2