On Thu, Nov 17, 2011 at 10:25:53AM +0800, Mi Jinlong wrote: > Opening file with filehandle, check reclaim is not needed. > > Signed-off-by: Mi Jinlong <mijinlong@xxxxxxxxxxxxxx> > --- > fs/nfsd/nfs4proc.c | 5 +++-- > 1 files changed, 3 insertions(+), 2 deletions(-) > > diff --git a/fs/nfsd/nfs4proc.c b/fs/nfsd/nfs4proc.c > index fa38336..681dff3 100644 > --- a/fs/nfsd/nfs4proc.c > +++ b/fs/nfsd/nfs4proc.c > @@ -266,8 +266,9 @@ do_open_fhandle(struct svc_rqst *rqstp, struct svc_fh *current_fh, struct nfsd4_ > { > __be32 status; > > - /* Only reclaims from previously confirmed clients are valid */ > - if ((status = nfs4_check_open_reclaim(&open->op_clientid))) > + if (open->op_claim_type != NFS4_OPEN_CLAIM_FH > + && open->op_claim_type != NFS4_OPEN_CLAIM_DELEG_CUR_FH Thanks for catching that. I think it would be simpler to pull this check out into nfsd4_open(), something like: case NFS4_OPEN_CLAIM_PREVIOUS: open->op_openowner->oo_flags |= NFS4_OO_CONFIRMED; status = nfs4_check_open_reclaim(&open->op_clientid); if (status) goto out; case NFS4_OPEN_CLAIM_FH: ... --b. > + && (status = nfs4_check_open_reclaim(&open->op_clientid))) > return status; > > /* We don't know the target directory, and therefore can not > -- > 1.7.7 > > -- To unsubscribe from this list: send the line "unsubscribe linux-nfs" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html