[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <ZtsTe1Cv7B3uLpVm@tissot.1015granger.net>
Date: Fri, 6 Sep 2024 10:36:43 -0400
From: Chuck Lever <chuck.lever@...cle.com>
To: Jeff Layton <jlayton@...nel.org>
Cc: Neil Brown <neilb@...e.de>, Olga Kornievskaia <okorniev@...hat.com>,
Dai Ngo <Dai.Ngo@...cle.com>, Tom Talpey <tom@...pey.com>,
Trond Myklebust <trondmy@...nel.org>, Anna Schumaker <anna@...nel.org>,
Alexander Viro <viro@...iv.linux.org.uk>,
Christian Brauner <brauner@...nel.org>, Jan Kara <jack@...e.cz>,
Tom Haynes <loghyr@...il.com>, linux-nfs@...r.kernel.org,
linux-kernel@...r.kernel.org, linux-fsdevel@...r.kernel.org
Subject: Re: [PATCH v4 01/11] nfsd: fix initial getattr on write delegation
On Fri, Sep 06, 2024 at 10:08:29AM -0400, Jeff Layton wrote:
> On Thu, 2024-09-05 at 08:41 -0400, Jeff Layton wrote:
> > diff --git a/fs/nfsd/nfs4state.c b/fs/nfsd/nfs4state.c
> > index df69dc6af467..db90677fc016 100644
> > --- a/fs/nfsd/nfs4state.c
> > +++ b/fs/nfsd/nfs4state.c
> > @@ -5914,6 +5914,26 @@ static void nfsd4_open_deleg_none_ext(struct nfsd4_open *open, int status)
> > }
> > }
> >
> > +static bool
> > +nfs4_delegation_stat(struct nfs4_delegation *dp, struct svc_fh *currentfh,
> > + struct kstat *stat)
> > +{
> > + struct nfsd_file *nf = find_rw_file(dp->dl_stid.sc_file);
> > + struct path path;
> > +
> > + if (!nf)
> > + return false;
> > +
> > + path.mnt = currentfh->fh_export->ex_path.mnt;
> > + path.dentry = file_dentry(nf->nf_file);
> > +
> > + if (vfs_getattr(&path, stat,
> > + (STATX_INO | STATX_SIZE | STATX_CTIME | STATX_CHANGE_COOKIE),
>
> Minor oversight here.
>
> I added STATX_INO when I was debugging, but we don't need it here. We
> should probably drop that flag (though it's mostly harmless). Chuck,
> would you be ok with fixing that up?
Fixed and squashed into nfsd-next.
--
Chuck Lever
Powered by blists - more mailing lists