* call table_en->target_config must be set to NULL.
*/
table_en->target->destroy(table_en);
+ /* decrement the refcount for the target */
+ dm_target_unbusy(table_en->target);
SLIST_REMOVE_HEAD(tbl, next);
{
table_en->target_config = NULL;
- /* Unbusy target so we can unload it */
- dm_target_unbusy(table_en->target);
-
return 0;
}
{
table_en->target_config = NULL;
- /* Unbusy target so we can unload it */
- dm_target_unbusy(table_en->target);
-
return 0;
}
table_en->target_config = NULL;
dm_pdev_decr(priv->pdev);
- dm_target_unbusy(table_en->target);
-
/*
* Clean up the crypt config
*
/* Decrement pdev ref counter if 0 remove it */
dm_pdev_decr(tlc->pdev);
- /* Unbusy target so we can unload it */
- dm_target_unbusy(table_en->target);
-
kfree(table_en->target_config, M_DMLINEAR);
table_en->target_config = NULL;
if (tsc->tsc_persistent_dev)
dm_pdev_decr(tsc->tsc_cow_dev);
- /* Unbusy target so we can unload it */
- dm_target_unbusy(table_en->target);
-
kmem_free(table_en->target_config, sizeof(dm_target_snapshot_config_t));
table_en->target_config = NULL;
dm_target_stripe_destroy_config(tsc);
}
- /* Unbusy target so we can unload it */
- dm_target_unbusy(table_en->target);
-
return 0;
}