From 76a25faf87ed2ec1e6fe59678a2833de727b6759 Mon Sep 17 00:00:00 2001 From: Bill Moore Date: Tue, 27 Jan 2009 12:05:51 -0800 Subject: 6798268 missing spa_config_exit() in L2ARC hangs system --- usr/src/uts/common/fs/zfs/arc.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'usr/src') diff --git a/usr/src/uts/common/fs/zfs/arc.c b/usr/src/uts/common/fs/zfs/arc.c index 9c42f59f68..8d430167b2 100644 --- a/usr/src/uts/common/fs/zfs/arc.c +++ b/usr/src/uts/common/fs/zfs/arc.c @@ -2758,6 +2758,8 @@ top: spa_config_exit(spa, SCL_L2ARC, vd); } } else { + if (vd != NULL) + spa_config_exit(spa, SCL_L2ARC, vd); if (l2arc_ndev != 0) { DTRACE_PROBE1(l2arc__miss, arc_buf_hdr_t *, hdr); -- cgit v1.2.3