From 31d06c78b2f8ea14877bebf05097b33cc7e233f2 Mon Sep 17 00:00:00 2001 From: Harald Barth Date: Wed, 2 Apr 2008 14:08:19 +0000 Subject: [PATCH] linux-flush-unlock-20080402 LICENSE IPL10 because i let this slip out like this. sigh. --- src/afs/LINUX/osi_vnodeops.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/afs/LINUX/osi_vnodeops.c b/src/afs/LINUX/osi_vnodeops.c index ded2fa7482..4a50475a41 100644 --- 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));