diff options
Diffstat (limited to 'module/zfs/zvol.c')
-rw-r--r-- | module/zfs/zvol.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/module/zfs/zvol.c b/module/zfs/zvol.c index 9b26084bb..e76a1c61b 100644 --- a/module/zfs/zvol.c +++ b/module/zfs/zvol.c @@ -1170,7 +1170,7 @@ zvol_remove_minors_impl(const char *name) { zvol_state_t *zv, *zv_next; int namelen = ((name) ? strlen(name) : 0); - taskqid_t t, tid = TASKQID_INVALID; + taskqid_t t; list_t free_list; if (zvol_inhibit_dev) @@ -1217,8 +1217,6 @@ zvol_remove_minors_impl(const char *name) (task_func_t *)ops->zv_free, zv, TQ_SLEEP); if (t == TASKQID_INVALID) list_insert_head(&free_list, zv); - else - tid = t; } else { mutex_exit(&zv->zv_state_lock); } @@ -1230,9 +1228,6 @@ zvol_remove_minors_impl(const char *name) list_remove(&free_list, zv); ops->zv_free(zv); } - - if (tid != TASKQID_INVALID) - taskq_wait_outstanding(system_taskq, tid); } /* Remove minor for this specific volume only */ |