git://git.openafs.org
/
openafs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
linux-flush-unlock-20080402
[openafs.git]
/
src
/
afs
/
LINUX
/
osi_vnodeops.c
diff --git
a/src/afs/LINUX/osi_vnodeops.c
b/src/afs/LINUX/osi_vnodeops.c
index
ded2fa7
..
4a50475
100644
(file)
--- a/
src/afs/LINUX/osi_vnodeops.c
+++ b/
src/afs/LINUX/osi_vnodeops.c
@@
-588,8
+588,10
@@
afs_linux_flush(struct file *fp)
AFS_GLOCK();
- if (fp->f_flags | O_RDONLY) /* readers dont flush */
+ if (fp->f_flags | O_RDONLY) { /* readers dont flush */
+ AFS_GUNLOCK();
return 0;
+ }
credp = crref();
vcp = VTOAFS(FILE_INODE(fp));