Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 16 Nov 2009 00:17:11 +0000 (UTC)
From:      Kip Macy <kmacy@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-user@freebsd.org
Subject:   svn commit: r199304 - user/kmacy/releng_8_fcs_buf/sys/cddl/contrib/opensolaris/uts/common/fs/zfs
Message-ID:  <200911160017.nAG0HBmt052205@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: kmacy
Date: Mon Nov 16 00:17:11 2009
New Revision: 199304
URL: http://svn.freebsd.org/changeset/base/199304

Log:
  drop bufobj lock before calling getblk

Modified:
  user/kmacy/releng_8_fcs_buf/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/arc.c

Modified: user/kmacy/releng_8_fcs_buf/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/arc.c
==============================================================================
--- user/kmacy/releng_8_fcs_buf/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/arc.c	Sun Nov 15 23:53:09 2009	(r199303)
+++ user/kmacy/releng_8_fcs_buf/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/arc.c	Mon Nov 16 00:17:11 2009	(r199304)
@@ -1354,8 +1354,10 @@ arc_gbincore_replace(struct vnode *vp, o
 			bgetvp(vp, newbp);
 			BO_UNLOCK(bo);
 			bp = newbp;
-		} else
+		} else {
+			BO_UNLOCK(bo);
 			bp = getblk(vp, blkno, size, 0, 0, flags);
+		}
 	} 
 
 	return (bp);



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