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

because i let this slip out like this. sigh.

src/afs/LINUX/osi_vnodeops.c

index ded2fa7482d502d533dd7e7e133e345637b7e60c..4a50475a416965d608a464e9d9b88e7acc89e90c 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));