diff options
Diffstat (limited to 'module/zfs/metaslab.c')
-rw-r--r-- | module/zfs/metaslab.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/module/zfs/metaslab.c b/module/zfs/metaslab.c index 9f6f0048f..8380897a9 100644 --- a/module/zfs/metaslab.c +++ b/module/zfs/metaslab.c @@ -1682,8 +1682,10 @@ metaslab_load_impl(metaslab_t *msp) mutex_enter(&msp->ms_lock); ASSERT(!msp->ms_condensing); - if (error != 0) + if (error != 0) { + mutex_exit(&msp->ms_sync_lock); return (error); + } ASSERT3P(msp->ms_group, !=, NULL); msp->ms_loaded = B_TRUE; |