Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp3255877ybd; Fri, 28 Jun 2019 05:37:23 -0700 (PDT) X-Google-Smtp-Source: APXvYqxXqZW+V9CciQFgsVnS7BxD0s+1o0+pCbf9a0uFxmR9dzxB7ZTl5Pu95hkPmDu+9MBnNSJa X-Received: by 2002:a63:f349:: with SMTP id t9mr8732356pgj.296.1561725443152; Fri, 28 Jun 2019 05:37:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561725443; cv=none; d=google.com; s=arc-20160816; b=N8ZypDK3FG1q92oVwtTCRW4Kr913KgErNxWYrVN2XNW+yp5Vxa2VS44cGf8TTZ3ibr VMJNiWr6eiZnhn4ZVxFbnvvENJGVWMRc1XNHQmMoMHbJhsOmcN4zwM8orGcmrGJusuhc ewLUnP215e1PN5S5vMeqj4ra8J7+TcXyyZ3sw9M/yjJDtd4/lp+5abifuUxIzUJZ9OjZ bJtZilImQxCk5a5wfUza7S5duyERD0LbNjkJW39rqH47UDWz8ytS4UuZ3gs3mmxmNxj8 /3BlCRnsp3VfSqlZbhq/8US51EbXROZeQ+y22LIHiIfGok9eHvnZ+6tXXVwTssUxyUIp Cutg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=dXx1840ZpUnoKpdyAqm+FOdUflFt+w/g0nr0JvO/jd8=; b=1AP7NhntkwcvZ/mzAhsEcIg4d1C/KXhLXzKDP0F/wa+ep/6d2P4dpmkGsfpg0v5QNP GFs892svZonAc1bpBcELQunsakRBVYo3mwtXpGxf8+VV2kGM+MTQRH6HbUXPHmMuBBa7 6UzsfAs3YAbPAQ5viuLNwQFe0VlffrSCRyRkzIon5UnapFcoaKyePQnlCwzL/9XtuLSf 1oc2DbMKqVzujRnRxSbW2euWr91yyudfcJ2xUZC5RkgpXA0ACJCw+wrmW/ybUh16YyYF ke1orIzWm/M52YZP4NGn2JNONBLToUMa9wq4LvF2BG/4gpaIGHhQvqxGhmJp5Rn3496E hmGg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-nfs-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a11si1995636pgj.537.2019.06.28.05.37.05; Fri, 28 Jun 2019 05:37:22 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-nfs-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-nfs-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726687AbfF1MhD (ORCPT + 99 others); Fri, 28 Jun 2019 08:37:03 -0400 Received: from mx3.molgen.mpg.de ([141.14.17.11]:36345 "EHLO mx1.molgen.mpg.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726696AbfF1MhD (ORCPT ); Fri, 28 Jun 2019 08:37:03 -0400 Received: from theinternet.molgen.mpg.de (theinternet.molgen.mpg.de [141.14.31.7]) by mx.molgen.mpg.de (Postfix) with ESMTP id DCA1020669590; Fri, 28 Jun 2019 14:37:01 +0200 (CEST) From: Donald Buczek To: linux-nfs@vger.kernel.org, trond.myklebust@hammerspace.com, anna.schumaker@netapp.com Cc: Donald Buczek Subject: [PATCH 4/4 RESEND] nfs4.0: Refetch lease_time after clientid update Date: Fri, 28 Jun 2019 14:36:40 +0200 Message-Id: <20190628123640.8715-5-buczek@molgen.mpg.de> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190628123640.8715-1-buczek@molgen.mpg.de> References: <20190628123640.8715-1-buczek@molgen.mpg.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-nfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org RFC 7530 requires us to refetch the lease time attribute once a new clientID is established. This is already implemented for the nfs4.1(+) clients by nfs41_init_clientid, which calls nfs41_finish_session_reset, which calls nfs4_setup_state_renewal. Let nfs4_init_clientid, which is used for 4.0 clients, call nfs4_setup_state_renewal as well. Signed-off-by: Donald Buczek --- fs/nfs/nfs4state.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/nfs/nfs4state.c b/fs/nfs/nfs4state.c index c2df257f426f..f32b02c2bc73 100644 --- a/fs/nfs/nfs4state.c +++ b/fs/nfs/nfs4state.c @@ -135,7 +135,7 @@ int nfs4_init_clientid(struct nfs_client *clp, const struct cred *cred) if (status != 0) goto out; clear_bit(NFS4CLNT_LEASE_CONFIRM, &clp->cl_state); - nfs4_schedule_state_renewal(clp); + nfs4_setup_state_renewal(clp); out: return status; } -- 2.22.0