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.6.2_pre2^2~7 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=bff5e77d97b2f2d26c783632c913451906533aab;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 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 --- diff --git a/src/afs/DARWIN/osi_misc.c b/src/afs/DARWIN/osi_misc.c index b6d272671..03c7abb86 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);