diff --git a/fs/nfsd/nfs4state.c b/fs/nfsd/nfs4state.c index 84fb6eb5ff2f3410d79d33fa4f2115e36211fe11..c7000c33a7f0a461ca71ad8783332cc8d7529836 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); }