Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp681913pxb; Wed, 24 Feb 2021 12:05:48 -0800 (PST) X-Google-Smtp-Source: ABdhPJyuSz7EhLW6vdfJG1UAoL0eNHmxxNS/4Zc79seKKizJ19Saf7Xs91sFLgRcvYXyjUscZ5fL X-Received: by 2002:a05:6402:1853:: with SMTP id v19mr13420931edy.10.1614197148082; Wed, 24 Feb 2021 12:05:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614197148; cv=none; d=google.com; s=arc-20160816; b=vFpw0XnZCfJLfgKSeLpFjlXIBmqEdHBawkNpvPiz5e5+rvlBrKPVdIldXuswPYMaEg a5QnKT7rXVax+Raf0OfXDvBQc+CZs3Ok3gi5WrL2ObYBek4UHM4IrEx194/tPvS4tmF4 kIiHEYTFoiD7bvGw06brTS7NrVmnz8KTn6AbB5cNcoJHGwjnhHhgoy/3OqXubiPYgScr fFF4LAaaXPbsLU4jFJRjtpnBpjmaZbCgZJHLmYlacUHK6uHvBi1oHZdI9x4lICYC8Xmi uRaFyXvcF5IHmq1w8w5jvlj3qfL8yaGeJXyaV0aQQxORBAGxF5hhuAjKcQV5VQNOgcjn S0dw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:from:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:date :dkim-signature:dkim-filter; bh=IxdrWW0QbqIEm1tKN2LHx+3jR61wgBt62ovT8qDge2w=; b=O3qecDUsPsO8F6CZWNUZLDH66WAVlWJJ3qU4n9r/gYr8oZKYd6qciANBq1pxpWn1Su RAyD0k+LmVdp1PBwccLvNdYDxvDa+T1W3+AWPQLiZ8EJX9bw+CK/Yf68YCjF1BK2lSIR I25h9JZRDgPwxNQBaERaYZf/I8du+9bNgIJS7n3E7P/ZLV/RoRInENkBNZqkj80WJssu YihSStM4ALbbyn80dVoIgiVlgIYBVRnIpOlwp4opixoYm/fHaMhCUajq+C6+qrFhrRhN 6B/1hdw9qfgEjlmIo6/dSnFkqQEm0Wnc+WOoDR7RhxduvFTFNNq2YDDqKar7K7CZA644 Q7dg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@fieldses.org header.s=default header.b=iXn9ZzIw; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-nfs-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 y19si1685729edw.135.2021.02.24.12.05.10; Wed, 24 Feb 2021 12:05:48 -0800 (PST) Received-SPF: pass (google.com: domain of linux-nfs-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=@fieldses.org header.s=default header.b=iXn9ZzIw; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235052AbhBXUFD (ORCPT + 99 others); Wed, 24 Feb 2021 15:05:03 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42574 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233743AbhBXUDO (ORCPT ); Wed, 24 Feb 2021 15:03:14 -0500 Received: from fieldses.org (fieldses.org [IPv6:2600:3c00:e000:2f7::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 66873C061574 for ; Wed, 24 Feb 2021 12:02:33 -0800 (PST) Received: by fieldses.org (Postfix, from userid 2815) id 683B82501; Wed, 24 Feb 2021 15:02:31 -0500 (EST) DKIM-Filter: OpenDKIM Filter v2.11.0 fieldses.org 683B82501 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fieldses.org; s=default; t=1614196951; bh=IxdrWW0QbqIEm1tKN2LHx+3jR61wgBt62ovT8qDge2w=; h=Date:To:Cc:Subject:References:In-Reply-To:From:From; b=iXn9ZzIwdhMLFHRjcEauCCP56pfPJesYU/5e9C/Rz8snzlPHhPzKBykk3AhxxAJ2h ab0iMkzdgZPnN8czV8dFZ51bISQ1C1OiJM8E5tt44DumxBQrKTN7PP3a50MAfN+5Lx uY/D0roO1zYzVcIfpRibWOzGZU8KOJv0/Zv9CoTg= Date: Wed, 24 Feb 2021 15:02:31 -0500 To: Chuck Lever Cc: Timo Rothenpieler , Linux NFS Mailing List , Olga Kornievskaia , Dai Ngo Subject: Re: [PATCH] svcrdma: disable timeouts on rdma backchannel Message-ID: <20210224200231.GD11591@fieldses.org> References: <20210222233619.21568-1-timo@rothenpieler.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) From: bfields@fieldses.org (J. Bruce Fields) Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org On Wed, Feb 24, 2021 at 02:18:18PM +0000, Chuck Lever wrote: > > > > On Feb 22, 2021, at 6:36 PM, Timo Rothenpieler wrote: > > > > This brings it in line with the regular tcp backchannel, which also has > > all those timeouts disabled. > > > > Prevents the backchannel from timing out, getting some async operations > > like server side copying getting stuck indefinitely on the client side. > > > > Signed-off-by: Timo Rothenpieler > > Thanks for your patch! I've included it in the for-rc branch at > > git://git.kernel.org/pub/scm/linux/kernel/git/cel/linux.git So, I'm sure this patch makes sense. But I'm also curious why it's not recovering. What I think should happen: - clp->cl_cb_state should be set to NFSD4_CB_DOWN. - This should cause the next SEQUENCE reply to have SEQ4_STATUS_CB_PATH_DOWN set. - That should poke the client to recover. (Maybe by sending a BIND_CONN_TO_SESSION call?) I'd be curious whether any of that's actually happening. --b. > > > > --- > > Did the same testing with this applied than before, and could not > > observe it getting stuck, same as with the previous patch, which I > > removed before testing this one. > > > > This obviously still does not fix the issue of it being seemingly unable > > to reestablish the disconnected backchannel. > > An event that disconnects the backchannel but leaves the main connection > > intact seems a pretty rare occurance though, outside of this issue. > > > > net/sunrpc/xprtrdma/svc_rdma_backchannel.c | 6 +++--- > > 1 file changed, 3 insertions(+), 3 deletions(-) > > > > diff --git a/net/sunrpc/xprtrdma/svc_rdma_backchannel.c b/net/sunrpc/xprtrdma/svc_rdma_backchannel.c > > index 63f8be974df2..8186ab6f99f1 100644 > > --- a/net/sunrpc/xprtrdma/svc_rdma_backchannel.c > > +++ b/net/sunrpc/xprtrdma/svc_rdma_backchannel.c > > @@ -252,9 +252,9 @@ xprt_setup_rdma_bc(struct xprt_create *args) > > xprt->timeout = &xprt_rdma_bc_timeout; > > xprt_set_bound(xprt); > > xprt_set_connected(xprt); > > - xprt->bind_timeout = RPCRDMA_BIND_TO; > > - xprt->reestablish_timeout = RPCRDMA_INIT_REEST_TO; > > - xprt->idle_timeout = RPCRDMA_IDLE_DISC_TO; > > + xprt->bind_timeout = 0; > > + xprt->reestablish_timeout = 0; > > + xprt->idle_timeout = 0; > > > > xprt->prot = XPRT_TRANSPORT_BC_RDMA; > > xprt->ops = &xprt_rdma_bc_procs; > > -- > > 2.25.1 > > > > -- > Chuck Lever > >