X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;ds=sidebyside;f=fs%2Fnfsd%2Fnfs4state.c;h=857141446d6b378cbdfcb09c8ec5b2df5c319d6d;hb=b08fc5277aaa1d8ea15470d38bf36f19dfb0e125;hp=39370a503a6313233bf75732519ab9c76bb652ec;hpb=9d2a789c1db75d0f55b14fa57bec548d94332ad8;p=linux.git diff --git a/fs/nfsd/nfs4state.c b/fs/nfsd/nfs4state.c index 39370a503a63..857141446d6b 100644 --- a/fs/nfsd/nfs4state.c +++ b/fs/nfsd/nfs4state.c @@ -4379,8 +4379,11 @@ nfs4_set_delegation(struct nfs4_client *clp, struct svc_fh *fh, spin_unlock(&state_lock); if (status) - destroy_unhashed_deleg(dp); + goto out_unlock; + return dp; +out_unlock: + vfs_setlease(fp->fi_deleg_file, F_UNLCK, NULL, (void **)&dp); out_clnt_odstate: put_clnt_odstate(dp->dl_clnt_odstate); out_stid: