Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp1547038ybg; Tue, 2 Jun 2020 13:01:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz194hjb4l3VmkEGVVEdmhLc2oxKoghW7jXv2GSDyTiHKqI3spCvyDBfbJSnIx27qr5V8VQ X-Received: by 2002:a17:906:b88c:: with SMTP id hb12mr24123446ejb.483.1591128086462; Tue, 02 Jun 2020 13:01:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591128086; cv=none; d=google.com; s=arc-20160816; b=G5H245MxADrparQtNpO9PJEwZ1xdGhdoJQVYdnVhXxoJhgaBaEL7f/EqMshyQvzLAC 7bTptDW7Fjs41XXgdmWo5qhqNVhqGCDaN+pynBA8j9nLCN61v1I6yu0njsRc9tiERVeH 9mTvMsIB14QHXuD/m6Ep/CGybHjfQ6RlPXEmuaUP4VWufy4kSZjfTNf5uo8fhXqU0pSc Pb2juZoig8vKw1bgpL2EhuVF2cCviTC5P8aBAcNf0kiOEPKvsdwaj+jPvNGHyOjRFzyO jnCuJuGCKG8o52SL2FTqQWlpW+rWIOqrs6dp4kkOoNCVQJoo+gQmRwAxYcH1F28P91ib 41og== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:from:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:date; bh=uQ3bIhyaKJOZ+B/dlMaxilq4IV9W9EMPYUQujgVBcso=; b=DgdGVd3czbf6OL2rBUSqCaE07tSjQxET2MPdC/9FQACyPKhe+2C2XA4D0XGXSjl1u4 OcJ++YYZzLKNs+zukGFFhgNGRTNn9NGpFTGGTNP6BeD9rEkmN91/WwLmFIoW34y+bg22 58OYJqNO/t3eS0FHuA06rQhrMOyvKcnnXkBB9X905zTsttGh/uBC3cMa7mu+NFzpyvbJ 1dva6dZfPsWE8d+/NtRLqqgnkWpHgrEuTUT/Z/xLbDrONpJBu+v2iUC9mn5dzege+5wW Szkz8xoY9D55D3g+c+/mpnqnAR5loxrePMqWFFNU5PN4h6fkpuWCYeEqNfJyo+GMa7nN xpDA== ARC-Authentication-Results: i=1; mx.google.com; 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 c25si2128117edw.456.2020.06.02.13.00.47; Tue, 02 Jun 2020 13:01:26 -0700 (PDT) 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; 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 S1726937AbgFBUAQ (ORCPT + 99 others); Tue, 2 Jun 2020 16:00:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54154 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726139AbgFBUAQ (ORCPT ); Tue, 2 Jun 2020 16:00:16 -0400 Received: from fieldses.org (fieldses.org [IPv6:2600:3c00::f03c:91ff:fe50:41d6]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F421DC08C5C0 for ; Tue, 2 Jun 2020 13:00:15 -0700 (PDT) Received: by fieldses.org (Postfix, from userid 2815) id 784F436E1; Tue, 2 Jun 2020 16:00:14 -0400 (EDT) Date: Tue, 2 Jun 2020 16:00:14 -0400 To: "Su, Yanjun" Cc: "bfields@redhat.com" , "linux-nfs@vger.kernel.org" , "mora@netapp.com" Subject: Re: Re: [About] about nfscache problem Message-ID: <20200602200014.GD1769@fieldses.org> References: <694b44377eae4adca7273de471807be7@G08CNEXMBPEKD05.g08.fujitsu.local> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <694b44377eae4adca7273de471807be7@G08CNEXMBPEKD05.g08.fujitsu.local> User-Agent: Mutt/1.5.21 (2010-09-15) From: bfields@fieldses.org (J. Bruce Fields) Sender: linux-nfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org On Tue, Jun 02, 2020 at 12:50:43AM +0000, Su, Yanjun wrote: > >On Thu, May 28, 2020 at 07:18:31AM +0000, Su, Yanjun wrote: > >> This patch adds compatible code for nfsv3 and nfsv4. > > >> When we test nfsv4, just use 'chmod' to recall delegation, then > > >> run the test. As 'chmod' will modify atime, so use 'noatime' mount option. > > >So, you patch nfstest as below, then run the test, and the test fails? > > It tests ok when appling the patch. So you're just asking that this patch be applied to nfstest? Sorry, I don't think I can help. --b. > > Signed-off-by: Su Yanjun > > > --- > > > test/nfstest_cache | 12 +++++++++++- > > > 1 file changed, 11 insertions(+), 1 deletion(-) > > > > > > diff --git a/test/nfstest_cache b/test/nfstest_cache > > > index 0838418..a31d48f 100755 > > > --- a/test/nfstest_cache > > > +++ b/test/nfstest_cache > > > @@ -165,8 +165,13 @@ class CacheTest(TestUtil): > > > fd = None > > > attr = 'data' if data_cache else 'attribute' > > > header = "Verify consistency of %s caching with %s on a file" % (attr, > > > self.nfsstr()) > > > + > > > # Mount options > > > - mtopts = "hard,intr,rsize=4096,wsize=4096" > > > + if self.nfsversion >= 4: > > > + mtopts = "noatime,hard,intr,rsize=4096,wsize=4096" > > > + else: + mtopts = "hard,intr,rsize=4096,wsize=4096" > > > + > > > if actimeo: > > > header += " actimeo = %d" % actimeo > > > mtopts += ",actimeo=%d" % actimeo > > > @@ -216,6 +221,11 @@ class CacheTest(TestUtil): > > > if fstat.st_size != dlen: > > > raise Exception("Size of newly created file is %d, should have been %d" > > > %(fstat.st_size, dlen)) > > > + if self.nfsversion >= 4: > > > + # revoke delegation > > > + self.dprint('DBG3', "revoke delegation") > > > + self.clientobj.run_cmd('chmod +x %s' % self.absfile) > > > + > > > if acregmax: > > > # Stat the unchanging file until acregmax is hit > > > # each stat doubles the valid cache time > > > > > > > > >