Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 223051
b: refs/heads/master
c: 21ac19d
h: refs/heads/master
i:
  223049: cdae237
  223047: fd156af
v: v3
  • Loading branch information
Sergey Vlasov authored and Trond Myklebust committed Dec 8, 2010
1 parent a3cf4e2 commit 6002a93
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 08a22b392a141c201d7ed4d435de942aa853acd3
refs/heads/master: 21ac19d484a8ffb66f64487846c8d53afef04d2b
2 changes: 2 additions & 0 deletions trunk/fs/nfs/file.c
Original file line number Diff line number Diff line change
Expand Up @@ -693,13 +693,15 @@ do_getlk(struct file *filp, int cmd, struct file_lock *fl, int is_local)
{
struct inode *inode = filp->f_mapping->host;
int status = 0;
unsigned int saved_type = fl->fl_type;

/* Try local locking first */
posix_test_lock(filp, fl);
if (fl->fl_type != F_UNLCK) {
/* found a conflict */
goto out;
}
fl->fl_type = saved_type;

if (nfs_have_delegation(inode, FMODE_READ))
goto out_noconflict;
Expand Down

0 comments on commit 6002a93

Please sign in to comment.