Received: by 2002:a5d:9c59:0:0:0:0:0 with SMTP id 25csp1450720iof; Tue, 7 Jun 2022 06:00:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzA7rA7Bg/VO8uNA1HhuUBFmrrGLbkBErjj0Jk0PSamHa132GwessUfbJt2bT92K/jeQrZ/ X-Received: by 2002:a17:902:eb90:b0:163:e4c1:b2fc with SMTP id q16-20020a170902eb9000b00163e4c1b2fcmr28195737plg.159.1654606844150; Tue, 07 Jun 2022 06:00:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654606843; cv=none; d=google.com; s=arc-20160816; b=PYHJcb7xminydhvXj537hNwUMaWEFbCzthJ/sMbqvjVA5Bxfl8suVf0cdlORxX7sKi yNlUq2tVVf9Y5pHd5/wazepepQoi7vA1JtqNdOYaB+aFY9Z6B4BlSg9quw3dvC8AHZdl P9UpF89gt1HGiK/oFfy6U0QUEeUhOAj9huqCCq5pS8WwOLvKDpnytOWfbQWoaVBC9INj ey5hUUQgdLO20W8Z1QIth+enVNfL2yOLExcP06Y0DD5fzeiN5Z4m1OE8uqUkZPXKRxoA MR+BltDuXkUz9eZdxzKc6olRFO1Hton5hogAu5gw7byfGW83MKnTIhgBg1yFwBfx3lMh q/lg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=CteZ4Os1WnEJvKlp+beKkYEGZpnaQCnHeL2Txt/VsLY=; b=zcdxmruVKBPP3sVg/U49FAjQiY+Vg0A/3bozTbRNaQcnF5skY0ZoqsK1A6RjopsaVP pjDWZ6mnrF8wHnmI16EeoTIsM6114SO/DYwtrCQ9gEDO1d+TRnd5/iOg4i55kfEqqYv8 CdeVB3p4VdYA2xeuN4oDh6GJLwe1FBDvoV+bublt6KvzUU6MasRSqqMr/Ol0RZdEIO/3 Rkijz3lRXjtOmPCVsnHZzqFRxj8ZQ2xqMvL5WPnnwicKnX7Yl5y7+jn2tiVCje8q0f/T ixZjT2Pu9gLbBwXEKBRwKjUtMFQdVDGdIUoPkWA/LbEVxZ8XHhkNhvwPAstPeEUmwmpP Nk9w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="Ns0S4OZ/"; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d16-20020a170903231000b0016641fc434asi22886134plh.190.2022.06.07.06.00.10; Tue, 07 Jun 2022 06:00:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="Ns0S4OZ/"; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233403AbiFGMxS (ORCPT + 99 others); Tue, 7 Jun 2022 08:53:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48540 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242548AbiFGMxO (ORCPT ); Tue, 7 Jun 2022 08:53:14 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 8651824F25 for ; Tue, 7 Jun 2022 05:53:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1654606390; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=CteZ4Os1WnEJvKlp+beKkYEGZpnaQCnHeL2Txt/VsLY=; b=Ns0S4OZ/5OAJ94MYwNWMkfidUmNDfyUTDgaqMTp4Z46lJwZl5qiC+Nc1RcVb6IHWigeU4X 6h1bBuI5On5emqzY4YzNt2Or821/TdI6j1yP6YoIapedcrEM696mQM23VJnTJ7cifpOgT/ Agvl17l277leJuU3lxkq+PXum5w4t5k= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-134-FmIY3mtKNaOxaF9odRZOLQ-1; Tue, 07 Jun 2022 08:53:06 -0400 X-MC-Unique: FmIY3mtKNaOxaF9odRZOLQ-1 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.rdu2.redhat.com [10.11.54.8]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 4EECF8AD570; Tue, 7 Jun 2022 12:53:06 +0000 (UTC) Received: from aion.usersys.redhat.com (unknown [10.22.9.24]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 30F96C23DBF; Tue, 7 Jun 2022 12:53:06 +0000 (UTC) Received: by aion.usersys.redhat.com (Postfix, from userid 1000) id 788E21A27C3; Tue, 7 Jun 2022 08:53:05 -0400 (EDT) Date: Tue, 7 Jun 2022 08:53:05 -0400 From: Scott Mayhew To: Anna Schumaker Cc: Trond Myklebust , Olga Kornievskaia , Linux NFS Mailing List Subject: Re: [PATCH] sunrpc: set cl_max_connect when cloning an rpc_clnt Message-ID: References: <20220601173449.155273-1-smayhew@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Scanned-By: MIMEDefang 2.85 on 10.11.54.8 X-Spam-Status: No, score=-3.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org On Mon, 06 Jun 2022, Anna Schumaker wrote: > Hi Scott, > > On Wed, Jun 1, 2022 at 1:34 PM Scott Mayhew wrote: > > > > If the initial attempt at trunking detection using the krb5i auth flavor > > fails with -EACCES, -NFS4ERR_CLID_INUSE, or -NFS4ERR_WRONGSEC, then the > > NFS client tries again using auth_sys, cloning the rpc_clnt in the > > process. If this second attempt at trunking detection succeeds, then > > the resulting nfs_client->cl_rpcclient winds up having cl_max_connect=0 > > and subsequent attempts to add additional transport connections to the > > rpc_clnt will fail with a message similar to the following being logged: > > > > [502044.312640] SUNRPC: reached max allowed number (0) did not add > > transport to server: 192.168.122.3 > > Good catch! I was wondering if you could give me a "Fixes:" tag so it > can be backported to stable? Fixes: dc48e0abee24 ("SUNRPC enforce creation of no more than max_connect xprts") > > Thanks, > Anna > > > > > Signed-off-by: Scott Mayhew > > --- > > net/sunrpc/clnt.c | 1 + > > 1 file changed, 1 insertion(+) > > > > diff --git a/net/sunrpc/clnt.c b/net/sunrpc/clnt.c > > index e2c6eca0271b..b6781ada3aa8 100644 > > --- a/net/sunrpc/clnt.c > > +++ b/net/sunrpc/clnt.c > > @@ -651,6 +651,7 @@ static struct rpc_clnt *__rpc_clone_client(struct rpc_create_args *args, > > new->cl_discrtry = clnt->cl_discrtry; > > new->cl_chatty = clnt->cl_chatty; > > new->cl_principal = clnt->cl_principal; > > + new->cl_max_connect = clnt->cl_max_connect; > > return new; > > > > out_err: > > -- > > 2.35.3 > > >