Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 11 Aug 2008 21:18:36 GMT
From:      Nick Barkas <snb@FreeBSD.org>
To:        Perforce Change Reviews <perforce@FreeBSD.org>
Subject:   PERFORCE change 147184 for review
Message-ID:  <200808112118.m7BLIaPh085117@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=147184

Change 147184 by snb@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);
 	}
 	
 	/* 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200808112118.m7BLIaPh085117>