FBSD: Avoid holding AFS_GLOCK during vinvalbuf
[openafs.git] / src / afs / afs_osi_vm.c
index dc25df8..5c1c03a 100644 (file)
@@ -93,13 +93,9 @@ osi_FlushPages(struct vcache *avc, afs_ucred_t *credp)
               ICL_TYPE_INT32, origDV.low, ICL_TYPE_INT32, avc->f.m.Length);
 
     ReleaseWriteLock(&avc->lock);
-#ifndef AFS_FBSD_ENV
     AFS_GUNLOCK();
-#endif
     osi_VM_FlushPages(avc, credp);
-#ifndef AFS_FBSD_ENV
     AFS_GLOCK();
-#endif
     ObtainWriteLock(&avc->lock, 88);
 
     /* do this last, and to original version, since stores may occur