summaryrefslogtreecommitdiff
path: root/usr/src
diff options
context:
space:
mode:
authorBill Moore <Bill.Moore@Sun.COM>2009-01-27 12:05:51 -0800
committerBill Moore <Bill.Moore@Sun.COM>2009-01-27 12:05:51 -0800
commit76a25faf87ed2ec1e6fe59678a2833de727b6759 (patch)
treead11676f0918df882973dfa923d0a05f4c382b01 /usr/src
parentfcddbe1ff917b2a8770cd3575f46e72601a06df6 (diff)
downloadillumos-gate-76a25faf87ed2ec1e6fe59678a2833de727b6759.tar.gz
6798268 missing spa_config_exit() in L2ARC hangs system
Diffstat (limited to 'usr/src')
-rw-r--r--usr/src/uts/common/fs/zfs/arc.c2
1 files changed, 2 insertions, 0 deletions
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);