Received: by 2002:a05:6a10:c7c6:0:0:0:0 with SMTP id h6csp1542425pxy; Mon, 2 Aug 2021 04:31:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyjVYtoIQhJYwPOKknFlqvcsPioRpauuEzyttUI7eCdDOOTyj9LAAh4c1xZEqHEX6YJGK9t X-Received: by 2002:a05:6402:603:: with SMTP id n3mr17700451edv.61.1627903908789; Mon, 02 Aug 2021 04:31:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627903908; cv=none; d=google.com; s=arc-20160816; b=i1GknuqO6keQJrQl7AlPi8HZ/MaSwQ8GmzTamNsardLcn2H3d+frXIeZgJj4c9SIwz ctVFKozgpM2FhhPxwyr1Gmub7F+GniJdy0OBk96psI2o0YEhHiBHpaPOyC5/QHbGPLik nSSq+79o9zRNIihwvwWid+kBgfnP75p6TfsZuRDwYMIwasl/lPGXOsJ42TQ6JXY2vyKm X4MwBF6J1c4SzqZ1kkWUCMSKuFsCGI6P+XxAFqhr/0e703OPZvjtJBl4E6V0aC9QIBpR 20yaETL2eKuoyrbyWM8fKHEjyOIxA5rPo4nL5xvC+Kp/IknHk/2UZa34UBfx0fnGUzUH SwLg== 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=IOWNMNDGeV1sDHFiXEfIwaMR3mXGG+6LH5R3gGPP7F2/ljf11/szBDaKgRLZh5gKt1 hYmWzRH0PRDKRMyqtdraV4WjkPZOgJGslHQfXcb4Km0PbVdiM7BaQ1vi1A30mU3P14Gh i5A7fipJAT/40hAwNnj2Z85kXqYliMynOLjBK4aLoOFzmLaFJxzkX3G2D6gNMQLTQuS5 K7F4P1N0uW/hP7JMKcG87TyDw4GeGEaTrHbMFkZedrvzxWrPwX/4dxJtY9eh3lFnuYXC rP320U+cO7EsMOFesIm1bc4lfx/Vaz3D6VGAaWzUjccr5eOPIGUC2vf58Rw3puu7izC3 X6gw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=spi4hxPr; 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 q26si9941573ejr.617.2021.08.02.04.31.25; Mon, 02 Aug 2021 04:31:48 -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=spi4hxPr; 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 S233568AbhHBL1i (ORCPT + 99 others); Mon, 2 Aug 2021 07:27:38 -0400 Received: from smtp-out2.suse.de ([195.135.220.29]:51286 "EHLO smtp-out2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233408AbhHBL1S (ORCPT ); Mon, 2 Aug 2021 07:27:18 -0400 Received: from relay2.suse.de (relay2.suse.de [149.44.160.134]) by smtp-out2.suse.de (Postfix) with ESMTP id 152481FF7B; 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=OXNn5WZQMOzF4wr03lXtsXvUZdT/MzSbG6ALi9FuFQs=; b=spi4hxPrfPbfKzcs5HYSTmLZgs1xLOJao7KvWx7hMPW7RokwubET99tONVa8BeKe+xuzfA x7pIihZAuUswupxtkpPJBc9u71DHATL4bsW/QA9K1eK2q3clyXUun1lbNvzBDLn8Uu3t4V Sh0ivM4XT4EMJSbMnxAzyZGPBHwbtiA= 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=OXNn5WZQMOzF4wr03lXtsXvUZdT/MzSbG6ALi9FuFQs=; b=eYynShd5yw1jJlWKW9dtxEI1pSjsFyfh5zeztYX8k5hWDhgnCC/AUqfb5g8X6bhUpk9YiL 8TAz5z/XvayCnRBQ== Received: from adalid.arch.suse.de (adalid.arch.suse.de [10.161.8.13]) by relay2.suse.de (Postfix) with ESMTP id 017EBA3BCA; Mon, 2 Aug 2021 11:27:08 +0000 (UTC) Received: by adalid.arch.suse.de (Postfix, from userid 17828) id F207C518C0B2; Mon, 2 Aug 2021 13:27:07 +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 7/8] nvme-tcp: Unfreeze queues on reconnect Date: Mon, 2 Aug 2021 13:26:57 +0200 Message-Id: <20210802112658.75875-8-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_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