Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 142147
b: refs/heads/master
c: e33d1ea
h: refs/heads/master
i:
  142145: ede017c
  142143: d887655
v: v3
  • Loading branch information
Miklos Szeredi authored and J. Bruce Fields committed Mar 18, 2009
1 parent 8dc8192 commit f196756
Show file tree
Hide file tree
Showing 2 changed files with 9 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: e37da04ed145d45c2a698d7cb373a7e1191fbe86
refs/heads/master: e33d1ea60c3a17b8b5c2910b1eef4c1faf0ac450
13 changes: 8 additions & 5 deletions trunk/fs/lockd/svclock.c
Original file line number Diff line number Diff line change
Expand Up @@ -426,8 +426,15 @@ nlmsvc_lock(struct svc_rqst *rqstp, struct nlm_file *file,
ret = nlm_granted;
goto out;
case -EAGAIN:
/*
* If this is a blocking request for an
* already pending lock request then we need
* to put it back on lockd's block list
*/
if (wait)
break;
ret = nlm_lck_denied;
break;
goto out;
case FILE_LOCK_DEFERRED:
if (wait)
break;
Expand All @@ -443,10 +450,6 @@ nlmsvc_lock(struct svc_rqst *rqstp, struct nlm_file *file,
goto out;
}

ret = nlm_lck_denied;
if (!wait)
goto out;

ret = nlm_lck_blocked;

/* Append to list of blocked */
Expand Down

0 comments on commit f196756

Please sign in to comment.