Received: by 2002:a05:6a10:c7c6:0:0:0:0 with SMTP id h6csp3046361pxy; Wed, 4 Aug 2021 00:29:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzCccEsI/EgUQZREmKjX4Vs2g9G0dxhgDzPk+5H4v8OC3WKQXn69HOf+YqfmJAGh0jqepeW X-Received: by 2002:a17:906:d93a:: with SMTP id rn26mr24064972ejb.382.1628062178104; Wed, 04 Aug 2021 00:29:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628062178; cv=none; d=google.com; s=arc-20160816; b=gbo2Mj8MQWKOVqj/VujZvhFADAA/xwgi3VsWxW2yzIAWRHq52HNx+Js/T2oAvd2KC4 USFY5MaF1ci/Xq9D5IcOJf/v1EHqQzC7ALw+MoFWsO8/bD7EVglsyX/oLVHc/8iXGhY4 1cJsJfetwMKnBBQd3ShujHX24FBcYuTu2038jpo/XTSuo0ghxSsTvCx0xjjZS1IT+6An EoLeUnR9HtaBW+7OMbTtQeFh8ozqVw7h68TV3ckFdaQuV/rr+uTH4Vw/giqdvFRdicCe V1KaxwF3GFxre3K2JNXYKsrn5Wc1wwHwq9gTLCc02nXJTpDDFs4b6ZzJIUC5zAL4gPLS zWsQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature:dkim-signature; bh=lbOcGokMbJk/XuXlCzXTIBoRTK5BBDFqLJNu9Hgtsf0=; b=a0IVZm/FB6fBjVO/35R/IzltEbSn/on+HiIKbN+zIJuuPXOjuqGXJ1rPZn0EdJRDG/ buJeGslaP1EeuYFuNpewbQGInjZXT74nlszU10MDiNn7xwUPCtnp4ei0n0hwle4ggm9m RpFIFSfA0d5RU+rK/x/8fAlrB6uofSIhZ2dsgrmaP9DomdjpiZOxRXx2geMz226/YgmF VT1KG5oDSFgT2FxDSTV3dyqFY0Tz6cL9/x1HkPJu+wQO4h6cc1pkmQLFMCN1c/h8bBP1 XihQgQMzJUIkjGV1yZsG4DNOMaVAI1U7Mrc0bys0uuY+jewqnvwXcpIX57i72fy3fssK Fi5g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b="syC0N/Oo"; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519 header.b=cDHpXk24; 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 f12si523976edx.601.2021.08.04.00.29.13; Wed, 04 Aug 2021 00:29:38 -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="syC0N/Oo"; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519 header.b=cDHpXk24; 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 S235817AbhHDHZW (ORCPT + 99 others); Wed, 4 Aug 2021 03:25:22 -0400 Received: from smtp-out2.suse.de ([195.135.220.29]:46034 "EHLO smtp-out2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235796AbhHDHZV (ORCPT ); Wed, 4 Aug 2021 03:25:21 -0400 Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id A811520106; Wed, 4 Aug 2021 07:25:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1628061908; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=lbOcGokMbJk/XuXlCzXTIBoRTK5BBDFqLJNu9Hgtsf0=; b=syC0N/OopS1qLJN9kO78E5MwdaRpWnvkyLcwSEKPR9xGuL3cQQ6qgoXrHYDN9I9ZK5Jud0 4KNh4GzQQwAyfuWY5QoZen54tRYWscL/YqkaNXvgYes53TC8gO7U5juredf/5Va4Xjxj0J cxRwNbQSL4POMyRhFnhTZq5rCi8A7HA= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1628061908; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=lbOcGokMbJk/XuXlCzXTIBoRTK5BBDFqLJNu9Hgtsf0=; b=cDHpXk24cpzV0WvT3kFBWu/IZc5vCa/uk28EBjTH5Iw7QVU/KlY6jIn6ym1b9hY8Kda4hA eyYu+f+J6EfEosBA== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 98F0F139FC; Wed, 4 Aug 2021 07:25:08 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id eoQWJdRACmH3dAAAMHmgww (envelope-from ); Wed, 04 Aug 2021 07:25:08 +0000 Subject: Re: [PATCH v4 8/8] nvme-rdma: Unfreeze queues on reconnect To: Daniel Wagner , linux-nvme@lists.infradead.org Cc: linux-kernel@vger.kernel.org, James Smart , Keith Busch , Ming Lei , Sagi Grimberg , Wen Xiong References: <20210802112658.75875-1-dwagner@suse.de> <20210802112658.75875-9-dwagner@suse.de> From: Hannes Reinecke Message-ID: <788e9210-37d4-6a52-2b5d-241c2442cea0@suse.de> Date: Wed, 4 Aug 2021 09:25:08 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: <20210802112658.75875-9-dwagner@suse.de> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 8/2/21 1:26 PM, Daniel Wagner wrote: > 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); > Reviewed-by: Hannes Reinecke Cheers, Hannes -- Dr. Hannes Reinecke Kernel Storage Architect hare@suse.de +49 911 74053 688 SUSE Software Solutions Germany GmbH, Maxfeldstr. 5, 90409 Nürnberg HRB 36809 (AG Nürnberg), GF: Felix Imendörffer