Received: by 2002:a89:48b:0:b0:1f5:f2ab:c469 with SMTP id a11csp1026141lqd; Thu, 25 Apr 2024 04:05:12 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVjfyUAo1WB/tfHIh5BL/fKxVPJC2bHSaxF4GzS4jzm+DlOkHUEd8CyAW3HRCNq/PECvydLng0DV6AcN/ukwxpr4JGye4+bfLnbNgImEg== X-Google-Smtp-Source: AGHT+IH5CkYJh0tHJjVn8iDFJDW56O3cGXLL5vXtsgN24yu7AJJsPUyRpeaXzV+08sM9X9KT3Jak X-Received: by 2002:a50:cd1c:0:b0:56b:9029:dd48 with SMTP id z28-20020a50cd1c000000b0056b9029dd48mr3420389edi.5.1714043111902; Thu, 25 Apr 2024 04:05:11 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714043111; cv=pass; d=google.com; s=arc-20160816; b=IHWbPm+EWvd3ALftboYPoXppFKiI2UU9yAIlEBBIyS3uG56LfefGq0oKT/I03iix3R PymEFjxE//ZZnHvYAPCaqFThkAQnmL5v2897q68LGhYm98C0bh4e5DDSb3uhLvaBnJP3 qUb4y30tC1lNhFe0gvSu88B+P8JBV9v2wzmNJ+W+s1RorlrNIxRaXvKxWZghT1UBzOi4 HkSmIgiYhUHvp5v3X6FSTNLaXq4BXkLSTk8lTkc88O+4doU6WMOoRClg6ZyIjSrm+aEf 5rUdDehcjEdX66sV2Fj8I5t4gbxSK7YkfJiq4G97Ezt/7dy+n9LS9MHncZKf/jeZXLRB QXSw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=8mAWzo/DIIcKHOW3+D8JKaAzaXSHi4m5CIEM6KQ05Nk=; fh=3OPHtZDB5NIzeK8uoRsTCy78QgvWM8gfmp0IXBElUEY=; b=cOHhgYSLouCcWJyW8OwTSsMGQo+Wt6r4hyVQ3SXA1ga8+Y8EHa41L2eoA18yo9J8MG jr6M/TMsQiKeKkC/wXYxRwpB570lry1lUI+5XeXMvQbiiVP7iaoZutlZiG6ch4/biBdp nUvZsAx/v/W1I8PAZx6n6C+E0Dre+gV6lTjGj0KGSAh+SZWB7Jq12EePzdTIGVy8v10j N2jQdM9ohJQY8AB2QV+zWx5evX7d+Gy+aKj1vVc/4AUnc+41ey28TumvAqgLssqIAlu6 ITFXS3//uXsB94Ih7682wRaIp8/K7mOiU3Sn9oixAkmD3hQHZs8Ct62OTAHBXaYilhkC IRzw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=e2Bun+CE; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-nfs+bounces-2991-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-nfs+bounces-2991-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id g17-20020a056402181100b00571bb75d118si9107013edy.416.2024.04.25.04.05.11 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Apr 2024 04:05:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-nfs+bounces-2991-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=e2Bun+CE; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-nfs+bounces-2991-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-nfs+bounces-2991-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 76C2D1F22E12 for ; Thu, 25 Apr 2024 11:05:11 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E912622EE8; Thu, 25 Apr 2024 11:05:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="e2Bun+CE" X-Original-To: linux-nfs@vger.kernel.org Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id CCD8A1CFA9 for ; Thu, 25 Apr 2024 11:05:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.133.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714043108; cv=none; b=uNIVs0BDSRMkz7hORtKS4qH0NQW745n+rwvuUU5HXnpodUfLtBTtDXzmM6/sc41mxamMYXw4Q7YRbhuyPvIuosnST/vgSy7MOACEy/jpBA0uYLq2g0TReWyl2iCAI0Jgz3z4VwwXNS+tWMBnjBMxQ2RwFejN53aoakpJBqwH5Xs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714043108; c=relaxed/simple; bh=8uVSQxT4sg6b6b2+KrgT5cx/6eDIK0JkScoenMNMm1I=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=HR+i7o42xexoZDcCBfclHlo8e0GGWkm2Cg66l7043SpRbpOxKkzerfYnVflKIuRPFfmi2dRb2McmzxfXMn7ei3G/UHwXqDSGkgAi2v2S6dPRw4vBiofcByMNfO77GM3B4y8Tqa0wrg/1qw6wT6USj1P/vCXyopVdYRznS9mQipc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=e2Bun+CE; arc=none smtp.client-ip=170.10.133.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1714043105; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=8mAWzo/DIIcKHOW3+D8JKaAzaXSHi4m5CIEM6KQ05Nk=; b=e2Bun+CE0HRXW7o7Aus9WZppSx0YGp5KpYrR4QzjSZmt86dz5HCkkj2getSNACQzcmZG9o os0d58/0VHm268gK0SIplbfEmVTg8wn6z0Mh4y+qt2F1FxJ4CeXiAoHF5JFtmCUPJ59UbX LvbYV9e6IVMb5wal0bYnXs5dBlMNtTA= Received: from mimecast-mx02.redhat.com (mx-ext.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-198-tSbmoXDMMTuhidg-HiwrUg-1; Thu, 25 Apr 2024 07:05:00 -0400 X-MC-Unique: tSbmoXDMMTuhidg-HiwrUg-1 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.rdu2.redhat.com [10.11.54.7]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 410201C106A4; Thu, 25 Apr 2024 11:05:00 +0000 (UTC) Received: from [192.168.37.1] (ovpn-0-6.rdu2.redhat.com [10.22.0.6]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 6AA751C0F136; Thu, 25 Apr 2024 11:04:59 +0000 (UTC) From: Benjamin Coddington To: Dan Aloni Cc: trondmy@hammerspace.com, linux-nfs@vger.kernel.org, Chuck Lever Subject: Re: [PATCH] sunrpc: fix NFSACL RPC retry on soft mount Date: Thu, 25 Apr 2024 07:04:58 -0400 Message-ID: In-Reply-To: <20240425104938.3363417-1-dan.aloni@vastdata.com> References: <20240425104938.3363417-1-dan.aloni@vastdata.com> Precedence: bulk X-Mailing-List: linux-nfs@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: quoted-printable X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.7 On 25 Apr 2024, at 6:49, Dan Aloni wrote: > It used to be quite awhile ago since 1b63a75180c6 ('SUNRPC: Refactor > rpc_clone_client()'), in 2012, that `cl_timeout` was copied in so that > all mount parameters propagate to NFSACL clients. However since that > change, if mount options as follows are given: > > soft,timeo=3D50,retrans=3D16,vers=3D3 > > The resultant NFSACL client receives: > > cl_softrtry: 1 > cl_timeout: to_initval=3D60000, to_maxval=3D60000, to_increment=3D0= , to_retries=3D2, to_exponential=3D0 > > These values lead to NFSACL operations not being retried under the > condition of transient network outages with soft mount. Instead, getacl= > call fails after 60 seconds with EIO. > > The simple fix is to pass the existing client's `cl_timeout` as the new= > client timeout. > > Cc: Chuck Lever > Cc: Benjamin Coddington > Link: https://lore.kernel.org/all/20231105154857.ryakhmgaptq3hb6b@gmail= =2Ecom/T/ > Fixes: 1b63a75180c6 ('SUNRPC: Refactor rpc_clone_client()') > Signed-off-by: Dan Aloni This also affects the local rpcbind, and makes the change in 6b996476f364 sunrpc: honor rpc_task's timeout value in rpcb_create() redundant. Just an observation, thanks for fixing this! Reviewed-by: Benjamin Coddington Ben > --- > net/sunrpc/clnt.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/net/sunrpc/clnt.c b/net/sunrpc/clnt.c > index cda0935a68c9..07ffd4ee695a 100644 > --- a/net/sunrpc/clnt.c > +++ b/net/sunrpc/clnt.c > @@ -1068,6 +1068,7 @@ struct rpc_clnt *rpc_bind_new_program(struct rpc_= clnt *old, > .version =3D vers, > .authflavor =3D old->cl_auth->au_flavor, > .cred =3D old->cl_cred, > + .timeout =3D old->cl_timeout, > }; > struct rpc_clnt *clnt; > int err; > -- = > 2.39.3