Skip to content

Commit

Permalink
Destroy the metaslab group taskq in metaslab_group_destroy()
Browse files Browse the repository at this point in the history
If the taskq isn't destroyed, at least under ZoL, zdb will never exit.
  • Loading branch information
dweeezil committed Feb 26, 2014
1 parent dad9948 commit 63153ae
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions module/zfs/metaslab.c
Original file line number Diff line number Diff line change
Expand Up @@ -351,6 +351,8 @@ metaslab_group_destroy(metaslab_group_t *mg)
*/
ASSERT(mg->mg_activation_count <= 0);

if (mg->mg_taskq)
taskq_destroy(mg->mg_taskq);
avl_destroy(&mg->mg_metaslab_tree);
mutex_destroy(&mg->mg_lock);
kmem_free(mg, sizeof (metaslab_group_t));
Expand Down

0 comments on commit 63153ae

Please sign in to comment.