* [PATCH v3] nfsd: Add layouts checking in client_has_state() [not found] <20150721095737.7411eb05@canb.auug.org.au> @ 2015-07-21 5:09 ` Kinglong Mee 2015-07-21 21:16 ` J. Bruce Fields 0 siblings, 1 reply; 2+ messages in thread From: Kinglong Mee @ 2015-07-21 5:09 UTC (permalink / raw) To: Stephen Rothwell, J. Bruce Fields; +Cc: linux-nfs@vger.kernel.org, kinglongmee Layout is a state resource, nfsd should check it too. v2, drop unneeded updating in nfsd4_renew() v3, fix compile error without CONFIG_NFSD_PNFS Signed-off-by: Kinglong Mee <kinglongmee@gmail.com> --- fs/nfsd/nfs4state.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/fs/nfsd/nfs4state.c b/fs/nfsd/nfs4state.c index 61dfb33..94a2980 100644 --- a/fs/nfsd/nfs4state.c +++ b/fs/nfsd/nfs4state.c @@ -2241,6 +2241,9 @@ static bool client_has_state(struct nfs4_client *clp) * Also note we should probably be using this in 4.0 case too. */ return !list_empty(&clp->cl_openowners) +#ifdef CONFIG_NFSD_PNFS + || !list_empty(&clp->cl_lo_states) +#endif || !list_empty(&clp->cl_delegations) || !list_empty(&clp->cl_sessions); } -- 2.4.3 ^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH v3] nfsd: Add layouts checking in client_has_state() 2015-07-21 5:09 ` [PATCH v3] nfsd: Add layouts checking in client_has_state() Kinglong Mee @ 2015-07-21 21:16 ` J. Bruce Fields 0 siblings, 0 replies; 2+ messages in thread From: J. Bruce Fields @ 2015-07-21 21:16 UTC (permalink / raw) To: Kinglong Mee; +Cc: Stephen Rothwell, linux-nfs@vger.kernel.org On Tue, Jul 21, 2015 at 01:09:17PM +0800, Kinglong Mee wrote: > Layout is a state resource, nfsd should check it too. > > v2, drop unneeded updating in nfsd4_renew() > v3, fix compile error without CONFIG_NFSD_PNFS Got it, thanks.--b. > > Signed-off-by: Kinglong Mee <kinglongmee@gmail.com> > --- > fs/nfsd/nfs4state.c | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/fs/nfsd/nfs4state.c b/fs/nfsd/nfs4state.c > index 61dfb33..94a2980 100644 > --- a/fs/nfsd/nfs4state.c > +++ b/fs/nfsd/nfs4state.c > @@ -2241,6 +2241,9 @@ static bool client_has_state(struct nfs4_client *clp) > * Also note we should probably be using this in 4.0 case too. > */ > return !list_empty(&clp->cl_openowners) > +#ifdef CONFIG_NFSD_PNFS > + || !list_empty(&clp->cl_lo_states) > +#endif > || !list_empty(&clp->cl_delegations) > || !list_empty(&clp->cl_sessions); > } > -- > 2.4.3 ^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-07-21 21:16 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <20150721095737.7411eb05@canb.auug.org.au>
2015-07-21 5:09 ` [PATCH v3] nfsd: Add layouts checking in client_has_state() Kinglong Mee
2015-07-21 21:16 ` J. Bruce Fields
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox