Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp668310ybl; Wed, 29 Jan 2020 07:35:43 -0800 (PST) X-Google-Smtp-Source: APXvYqyw+lEYLsew15aBVC5fC2HMIIOmDiBf6wOc5VoxMDrzM4aayQQXZ9BbicLcoZB4Pnl+Ytal X-Received: by 2002:a05:6830:231d:: with SMTP id u29mr21753962ote.185.1580312143002; Wed, 29 Jan 2020 07:35:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580312142; cv=none; d=google.com; s=arc-20160816; b=UwSrYPW/8iugjGIOqu6nTjIyowJtKHAQKACkjpvp3NBWbvx3G2JIbFvb274MH7z+Kr PRhvCPfbBLhwEqChGd5Mn1mJxvn+q0uIgD4OE5v9KiAWqG6n3PvEW5RL0Jj9Hdf5Ghic ziecwXqK1tL2BJoSZbFTuxYmZbakKSZ10hoIYMq9eXLXsHuIrDRMq6oTjEzm0cYCR4De uTynHg/0LeC/wSNL6EUVr6qZVvF5rFIUkOKfTBaYyD33EcBuTy3fpYbTrZ92iJvZeiQx rg6CZnYlsrc7K/rCLZpB6lleZdY5a/A+ja2/TiULbRcQTV6U76Yn1/X4rmI3sJlKOwhp 88Yg== 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 :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from; bh=ALLVd9JVvAw2mpsrF4CvBiZy/F/am8NqgLa3L4Uzz8I=; b=DLUdwqnix26ywN54AL6CWCkrcqmfe3vL8nCwDco6JxEwKC8rdVz+/Shrk5vBx7EDtc YV5YyDCl0qJ+JsnBrUVWg+YUlvUk9/Oy/CMfS+2a4yZSBqmyW2CWEWMBJhV9S9G+hGPR 7jYJQpLwpx0t8sNSHa8M3EUbFuC9BqIYx+kgslqTJc21ivFXLoy0X+JtyRsxh60uhjFa oKilK8f0hJRYRsgyJK3EgkCCFsPjoo2PCQw/BlERno+brBNZmyl9RVD+QMunHhK2KxuP 5bjEf96imUuHxFzwQa4Wsz0ZzbIuMQzDuCTY/3y6vGEmGVXMwquMUX2smwTX9Kpmt9WP v4tA== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=aculab.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e16si1259639oie.73.2020.01.29.07.35.23; Wed, 29 Jan 2020 07:35:42 -0800 (PST) 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=aculab.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726314AbgA2PfX convert rfc822-to-8bit (ORCPT + 99 others); Wed, 29 Jan 2020 10:35:23 -0500 Received: from eu-smtp-delivery-151.mimecast.com ([207.82.80.151]:32474 "EHLO eu-smtp-delivery-151.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726240AbgA2PfX (ORCPT ); Wed, 29 Jan 2020 10:35:23 -0500 Received: from AcuMS.aculab.com (156.67.243.126 [156.67.243.126]) (Using TLS) by relay.mimecast.com with ESMTP id uk-mta-6-xUshFdb3PkyTVE3XILwyZw-1; Wed, 29 Jan 2020 15:35:19 +0000 Received: from AcuMS.Aculab.com (fd9f:af1c:a25b:0:43c:695e:880f:8750) by AcuMS.aculab.com (fd9f:af1c:a25b:0:43c:695e:880f:8750) with Microsoft SMTP Server (TLS) id 15.0.1347.2; Wed, 29 Jan 2020 15:35:18 +0000 Received: from AcuMS.Aculab.com ([fe80::43c:695e:880f:8750]) by AcuMS.aculab.com ([fe80::43c:695e:880f:8750%12]) with mapi id 15.00.1347.000; Wed, 29 Jan 2020 15:35:18 +0000 From: David Laight To: 'Robert Milkowski' , "linux-nfs@vger.kernel.org" , 'Trond Myklebust' CC: 'Anna Schumaker' , 'Chuck Lever' , "linux-kernel@vger.kernel.org" , 'Trond Myklebust' Subject: RE: [PATCH v4] NFSv4.0: nfs4_do_fsinfo() should not do implicit lease renewals Thread-Topic: [PATCH v4] NFSv4.0: nfs4_do_fsinfo() should not do implicit lease renewals Thread-Index: AdXV6tGXVv4pqJJkS9G0izuAHIy3vAAzr9Pw Date: Wed, 29 Jan 2020 15:35:18 +0000 Message-ID: <1d098aa2dfea466a9aaa4c55353221e2@AcuMS.aculab.com> References: <004e01d5d5ed$5e7ca490$1b75edb0$@gmail.com> In-Reply-To: <004e01d5d5ed$5e7ca490$1b75edb0$@gmail.com> Accept-Language: en-GB, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [10.202.205.107] MIME-Version: 1.0 X-MC-Unique: xUshFdb3PkyTVE3XILwyZw-1 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: aculab.com Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT Sender: linux-nfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org From: Robert Milkowski > Sent: 28 January 2020 15:13 > > Currently, each time nfs4_do_fsinfo() is called it will do an implicit > NFS4 lease renewal, which is not compliant with the NFS4 specification. > This can result in a lease being expired by an NFS server. ... > diff --git a/fs/nfs/nfs4proc.c b/fs/nfs/nfs4proc.c > index 76d3716..7b2d88b 100644 ... > + if(status == 0) Whitespace David - Registered Address Lakeside, Bramley Road, Mount Farm, Milton Keynes, MK1 1PT, UK Registration No: 1397386 (Wales)