changeset 13026:8a1c615ca92b

6958471 assertion failed: BP_GET_DEDUP(zio->io_bp), file: ../../common/fs/zfs/arc.c, line: 3257
author George Wilson <George.Wilson@Sun.COM>
date Wed, 04 Aug 2010 14:55:16 -0700
parents 3c7681e3e323
children 5664b86df7cd
files usr/src/uts/common/fs/zfs/dbuf.c
diffstat 1 files changed, 6 insertions(+), 10 deletions(-) [+]
line wrap: on
line diff
--- a/usr/src/uts/common/fs/zfs/dbuf.c	Wed Aug 04 12:28:19 2010 -0700
+++ b/usr/src/uts/common/fs/zfs/dbuf.c	Wed Aug 04 14:55:16 2010 -0700
@@ -1803,17 +1803,13 @@
 
 	/* dbuf_find() returns with db_mtx held */
 	if (db = dbuf_find(dn, 0, blkid)) {
-		if (refcount_count(&db->db_holds) > 0) {
-			/*
-			 * This dbuf is active.  We assume that it is
-			 * already CACHED, or else about to be either
-			 * read or filled.
-			 */
-			mutex_exit(&db->db_mtx);
-			return;
-		}
+		/*
+		 * This dbuf is already in the cache.  We assume that
+		 * it is already CACHED, or else about to be either
+		 * read or filled.
+		 */
 		mutex_exit(&db->db_mtx);
-		db = NULL;
+		return;
 	}
 
 	if (dbuf_findbp(dn, 0, blkid, TRUE, &db, &bp) == 0) {