From bff5e77d97b2f2d26c783632c913451906533aab Mon Sep 17 00:00:00 2001 From: Derrick Brashear Date: Tue, 18 Dec 2012 09:04:15 -0500 Subject: [PATCH] macos: avoid leaking iocount on synthetic fsevents in certain cases we could leak an iocount. clean up even if our event couldn't be run Reviewed-on: http://gerrit.openafs.org/8777 Tested-by: BuildBot Reviewed-by: Jeffrey Altman Reviewed-by: Derrick Brashear (cherry picked from commit cf150252b688dff0224f32be66d88347d1d94b37) Change-Id: Id8c94bee3663507d31c0e0dc719693d82f90a151 Reviewed-on: http://gerrit.openafs.org/8791 Tested-by: BuildBot Reviewed-by: Stephan Wiesand Reviewed-by: Paul Smeddle --- src/afs/DARWIN/osi_misc.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/afs/DARWIN/osi_misc.c b/src/afs/DARWIN/osi_misc.c index b6d2726717..03c7abb868 100644 --- a/src/afs/DARWIN/osi_misc.c +++ b/src/afs/DARWIN/osi_misc.c @@ -88,6 +88,10 @@ loop: vnode_put(vp); AFS_GLOCK(); ReleaseWriteLock(&tvc->lock); + } else { + AFS_GUNLOCK(); + vnode_put(vp); + AFS_GLOCK(); } ObtainReadLock(&afs_xvcache); uq = QPrev(tq);