Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 195
b: refs/heads/master
c: c907132
h: refs/heads/master
i:
  193: c37fafb
  191: 07f108b
v: v3
  • Loading branch information
NeilBrown authored and Linus Torvalds committed Apr 16, 2005
1 parent 1b1917b commit ef0516e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: f1ee4f22f21d74bc3ca63b95ca5b63d3a8620527
refs/heads/master: c907132d534c10b4f34a60383c8384403cb424a4
8 changes: 3 additions & 5 deletions trunk/fs/nfsd/nfs4state.c
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,8 @@ nfs4_close_delegation(struct nfs4_delegation *dp)
dp->dl_vfs_file = NULL;
/* The following nfsd_close may not actually close the file,
* but we want to remove the lease in any case. */
setlease(filp, F_UNLCK, &dp->dl_flock);
if (dp->dl_flock)
setlease(filp, F_UNLCK, &dp->dl_flock);
nfsd_close(filp);
vfsclose++;
}
Expand Down Expand Up @@ -1673,10 +1674,7 @@ nfs4_open_delegation(struct svc_fh *fh, struct nfsd4_open *open, struct nfs4_sta
if ((status = setlease(stp->st_vfs_file,
flag == NFS4_OPEN_DELEGATE_READ? F_RDLCK: F_WRLCK, &flp))) {
dprintk("NFSD: setlease failed [%d], no delegation\n", status);
list_del(&dp->dl_del_perfile);
list_del(&dp->dl_del_perclnt);
nfs4_put_delegation(dp);
free_delegation++;
unhash_delegation(dp);
flag = NFS4_OPEN_DELEGATE_NONE;
goto out;
}
Expand Down

0 comments on commit ef0516e

Please sign in to comment.