From cf150252b688dff0224f32be66d88347d1d94b37 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 Change-Id: I3a69f637c38478ac5f20a42af7db7f8a0ba7539a Reviewed-on: http://gerrit.openafs.org/8777 Tested-by: BuildBot Reviewed-by: Jeffrey Altman Reviewed-by: Derrick Brashear --- 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 03792d9c8..e0de03700 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); -- 2.39.5