PERFORCE change 147184 for review
Nick Barkas
snb at FreeBSD.org
Mon Aug 11 21:18:37 UTC 2008
http://perforce.freebsd.org/chv.cgi?CH=147184
Change 147184 by snb at snb_toro on 2008/08/11 21:18:31
It's definitely a good idea to unlock the dirhash if we aren't deleting
it.
Affected files ...
.. //depot/projects/soc2008/snb-dirhash/sys-ufs-ufs/ufs_dirhash.c#9 edit
Differences ...
==== //depot/projects/soc2008/snb-dirhash/sys-ufs-ufs/ufs_dirhash.c#9 (text+ko) ====
@@ -1193,6 +1193,9 @@
continue;
if (time_second - dh->dh_lastused > ufs_dirhashreclaimage)
memfreed += ufsdirhash_destroy(dh);
+ /* Unlock if we didn't delete the dirhash */
+ else
+ lockmgr(&dh->dh_lock, LK_RELEASE, 0);
}
/*
More information about the p4-projects
mailing list