From: Harald Barth Date: Wed, 2 Apr 2008 14:11:42 +0000 (+0000) Subject: STABLE14-linux-flush-unlock-20080402 X-Git-Tag: openafs-stable-1_4_7pre3~3 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=6ac65423b104e8464efc22841a97121ad5ccb775;p=packages%2Fo%2Fopenafs.git STABLE14-linux-flush-unlock-20080402 LICENSE IPL10 because i let this slip out like this. sigh. (cherry picked from commit 31d06c78b2f8ea14877bebf05097b33cc7e233f2) --- diff --git a/src/afs/LINUX/osi_vnodeops.c b/src/afs/LINUX/osi_vnodeops.c index 395694627..b9d002a44 100644 --- a/src/afs/LINUX/osi_vnodeops.c +++ b/src/afs/LINUX/osi_vnodeops.c @@ -570,8 +570,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));