From 9e9c486fc924eada09108c27348cb43d3015557b Mon Sep 17 00:00:00 2001 From: George Wilson Date: Wed, 4 Aug 2010 14:55:16 -0700 Subject: [PATCH] 6958471 assertion failed: BP_GET_DEDUP(zio->io_bp), file: ../../common/fs/zfs/arc.c, line: 3257 --- usr/src/uts/common/fs/zfs/dbuf.c | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/usr/src/uts/common/fs/zfs/dbuf.c b/usr/src/uts/common/fs/zfs/dbuf.c index b73dbdcfd7..9c4e0296db 100644 --- a/usr/src/uts/common/fs/zfs/dbuf.c +++ b/usr/src/uts/common/fs/zfs/dbuf.c @@ -1803,17 +1803,13 @@ dbuf_prefetch(dnode_t *dn, uint64_t blkid) /* 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) { -- 2.11.4.GIT