Received: by 2002:a05:6a10:c7c6:0:0:0:0 with SMTP id h6csp1467683pxy; Mon, 2 Aug 2021 02:16:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzYQWpm7lB1wI6uSXr8rClGWuafgNTq6DN5vB9suRERefmrbAsAL29XeYDkAPEBT2K9w1AE X-Received: by 2002:a92:cb06:: with SMTP id s6mr1217129ilo.87.1627895785505; Mon, 02 Aug 2021 02:16:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627895785; cv=none; d=google.com; s=arc-20160816; b=kI90Z8FTpCYQEzhA0fS8saWBAm30IFjH+7GcfgO+7W/sL9xjGTMYH3VCZVjK73iv5m 48SDF+HoRP+IGqkjOixgZfieWnvXe4vH9xbgyajhsUCwCSYmWvGMH8jTDzrorgornCI8 fYh2QHOqgOV2fdU23NlqPQ9ZaGt/Lw4ODuQlN7XuPQPwG4HKg4f3HrIm95qSAECp2amq cZOx9rNCwaBfbvT87WlpU4KXmZv6sIjSVpI+Mcw6lGZZgFalobJW6JCZQwZOZUrmOHmR G9a6Qw5znRQ4LEy2RuTZxG/i4sVaZs4dMVyn1rmNjAGI32Bl/izl5/f50BzQzu6SQHlz RPJA== 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=xD1osPZmGL39UJZynJABMwVpI/iUKdpOgdXQPzEQhON8FYnM7/kuUZP1R8lofZiFf3 ZF4Edre3ZZvPOlaw9key3Ne5nmNO8Ff7wMpp9DRc6v1VmV+3YOYJ+eBYgYBfDyYnojHh cISNNnRaAytjMUJIS3HfIZJmPC5qW1OWSIpyn401j6/kA3yoEl8g7g6gVBaOX6KiEfYk ztr6UmLCPhdF8zQrKVp9uUdAf51sBVWM+IRNfyNvmwQ4jCy6CRt5qQEfILtSSwU6281C jjdoFZfUiHBOicbGD0JJhA1C84a9yBDEa09Nh0zoNA0oF381c8SROPYY48ZmwhpUvEzc r5xg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=N+1n5KRz; dkim=neutral (no key) header.i=@suse.de; 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 13si11088225ilt.16.2021.08.02.02.16.14; Mon, 02 Aug 2021 02:16:25 -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=N+1n5KRz; dkim=neutral (no key) header.i=@suse.de; 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 S233144AbhHBJPA (ORCPT + 99 others); Mon, 2 Aug 2021 05:15:00 -0400 Received: from smtp-out1.suse.de ([195.135.220.28]:44238 "EHLO smtp-out1.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232918AbhHBJOc (ORCPT ); Mon, 2 Aug 2021 05:14:32 -0400 Received: from relay2.suse.de (relay2.suse.de [149.44.160.134]) by smtp-out1.suse.de (Postfix) with ESMTP id D922621F92; Mon, 2 Aug 2021 09:14:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1627895661; 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=N+1n5KRzW6s24ikSgDhL2tmsT39qO2ZRzX8lqB6DJry37dkTREvk4+AYaHPsxAob1wM3Pn qTsdtC71CwNssszviWcuD7afElG6Q4Xa/53kt1LoP329io6Zgdn/lFhvYswc3xlaGnKJwu hM1FmUZ8RqNAhY3HaFz0fpTtuDRJRJk= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1627895661; 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=e7rMxn/09JBLlBbH/w7K/FuwWZLus0cKadw3g67V22KecwXor6CTEuEA0d15WwjcWT4ZOM hC9a9Fn8UJbMCYDA== Received: from adalid.arch.suse.de (adalid.arch.suse.de [10.161.8.13]) by relay2.suse.de (Postfix) with ESMTP id D154BA3BB5; Mon, 2 Aug 2021 09:14:21 +0000 (UTC) Received: by adalid.arch.suse.de (Postfix, from userid 17828) id 22DDE518C097; Mon, 2 Aug 2021 11:14:21 +0200 (CEST) From: Daniel Wagner To: linux-kernel@vger.kernel.org Cc: 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 11:14:19 +0200 Message-Id: <20210802091419.56425-9-dwagner@suse.de> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20210802091419.56425-1-dwagner@suse.de> References: <20210802091419.56425-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