Received: by 2002:a05:6a10:c7c6:0:0:0:0 with SMTP id h6csp1467300pxy; Mon, 2 Aug 2021 02:15:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxcu97OLh4AgbCEZTHzESD7vXYsjhFG+xBBijeBL0p31N46rCPJ6heSE+Ray/+xmxkO4nI4 X-Received: by 2002:a6b:7b44:: with SMTP id m4mr873167iop.72.1627895742350; Mon, 02 Aug 2021 02:15:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627895742; cv=none; d=google.com; s=arc-20160816; b=ALrZc377NifpOOFYGJulujeF8agU/Lc5RSqwpn3uVI7tuH9LoV6PttPleAuB47ATJP KS7VJFCM8v0HDwcteyGQcw4GyPTd3ehTK/qHVFajuSCPR8KN1YF0s5li3N2WvFaNsDmv ZsNunm0jb+RN2xzyTfh1+3lvw39g1nJ2Th/HRMaLJh+2p2KisNgnLHNhCCIyVY0iTJsW v5DuISVA2koglZGw5NsD7WvEo6xXK5NZsjZ7xMDC4cQC0dRYm049RdLK3deVvz3f0dNZ y030LIZdR5t/NHkpnaMYJgfOncPnYMAY8VdBZjdAuEfxqQmlatB+IHVFzLjLSdhs9H9K CFJg== 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=OXNn5WZQMOzF4wr03lXtsXvUZdT/MzSbG6ALi9FuFQs=; b=ncD3HGCSPjyakqPbuZoeO+3u4FOJVM2BUJ+vvBmWmyAV7X2/eK98r4ZDeqR62sTBKF f2+n5Ss5xvksz4N8VeJSS16tjGj5vBGpmgb5gGyRrOtvtFJyNIeywk6nr3MY56ao6oL4 bUjFpXP/ixJ+EZscoi6+8nHaUxPlmGkLTqo4IkZrbQMMUHsykboh7wI9s02xQ5X5sciW 2gCZGnXf2wvbL2LfwD3fCfv3duxHKJkKMt/BO+WAyOVmueCMHQPYCwB9WMwJQL3cZ6zn 7hkywezmrZCjE98ANJ8I8U+PaocqP2g9NYQyiNl+9keusUdc7HBzk9TCSSro8qzBtJVk wrvA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b="FrbDu/GE"; 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 k40si11344696jav.47.2021.08.02.02.15.31; Mon, 02 Aug 2021 02:15:42 -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="FrbDu/GE"; 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 S233038AbhHBJOx (ORCPT + 99 others); Mon, 2 Aug 2021 05:14:53 -0400 Received: from smtp-out2.suse.de ([195.135.220.29]:58824 "EHLO smtp-out2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232940AbhHBJOc (ORCPT ); Mon, 2 Aug 2021 05:14:32 -0400 Received: from relay2.suse.de (relay2.suse.de [149.44.160.134]) by smtp-out2.suse.de (Postfix) with ESMTP id D9F071FF58; 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=OXNn5WZQMOzF4wr03lXtsXvUZdT/MzSbG6ALi9FuFQs=; b=FrbDu/GECJXSQF+Vtmepd0NXebbc87vd1PuyPzvMqKS7H0XCksAzJYN9z8zTQos/4XZCGh xYIqdQAxE6rYCoHnh5OWjbQo08PxoL7Qug6fPlKWuckgQPgROTIvnERjw9SchInZXRfr4K /3h82gByhMBNjn/qW2xfpu5KO78UXE4= 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=OXNn5WZQMOzF4wr03lXtsXvUZdT/MzSbG6ALi9FuFQs=; b=P4ansKEO2x5jLeMFJh7wSAI6zhRnb+PPnnjW0J0gTS+/2PYLpLPMJMhrc1ermx28j3qr0g QLGbElG2mhXs3yBA== Received: from adalid.arch.suse.de (adalid.arch.suse.de [10.161.8.13]) by relay2.suse.de (Postfix) with ESMTP id D0507A3BB3; Mon, 2 Aug 2021 09:14:21 +0000 (UTC) Received: by adalid.arch.suse.de (Postfix, from userid 17828) id 1D959518C095; 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 7/8] nvme-tcp: Unfreeze queues on reconnect Date: Mon, 2 Aug 2021 11:14:18 +0200 Message-Id: <20210802091419.56425-8-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_tcp_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: 2875b0aecabe ("nvme-tcp: fix controller reset hang during traffic") Signed-off-by: Daniel Wagner --- drivers/nvme/host/tcp.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/nvme/host/tcp.c b/drivers/nvme/host/tcp.c index 32268f24f62a..097f7dd10ed3 100644 --- a/drivers/nvme/host/tcp.c +++ b/drivers/nvme/host/tcp.c @@ -1819,9 +1819,11 @@ static int nvme_tcp_configure_io_queues(struct nvme_ctrl *ctrl, bool new) } blk_mq_update_nr_hw_queues(ctrl->tagset, ctrl->queue_count - 1); - nvme_unfreeze(ctrl); } + if (!new) + nvme_unfreeze(ctrl); + ret = nvme_tcp_start_io_queues(ctrl); if (ret) goto out_cleanup_connect_q; -- 2.29.2