]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
DEVEL15-linux-flush-unlock-20080402
authorHarald Barth <haba@pdc.kth.se>
Wed, 2 Apr 2008 14:10:00 +0000 (14:10 +0000)
committerDerrick Brashear <shadow@dementia.org>
Wed, 2 Apr 2008 14:10:00 +0000 (14:10 +0000)
LICENSE IPL10

because i let this slip out like this. sigh.

(cherry picked from commit 31d06c78b2f8ea14877bebf05097b33cc7e233f2)

src/afs/LINUX/osi_vnodeops.c

index 8c953fd40f796b7799edca3d3d19d87002a2adec..6fea95259e206cdbca4f414a399d26508e387084 100644 (file)
@@ -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));