From: Derrick Brashear Date: Tue, 18 Dec 2012 14:04:15 +0000 (-0500) Subject: macos: avoid leaking iocount on synthetic fsevents X-Git-Tag: upstream/1.8.0_pre1^2~1711 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=cf150252b688dff0224f32be66d88347d1d94b37;p=packages%2Fo%2Fopenafs.git 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 --- 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);