diff --git a/include/sys/spa_impl.h b/include/sys/spa_impl.h index 2004166781..366410acf2 100644 --- a/include/sys/spa_impl.h +++ b/include/sys/spa_impl.h @@ -481,8 +481,6 @@ extern const char *zfs_deadman_failmode; extern uint_t spa_slop_shift; extern void spa_taskq_dispatch_ent(spa_t *spa, zio_type_t t, zio_taskq_type_t q, task_func_t *func, void *arg, uint_t flags, taskq_ent_t *ent, zio_t *zio); -extern void spa_taskq_dispatch_sync(spa_t *, zio_type_t t, zio_taskq_type_t q, - task_func_t *func, void *arg, uint_t flags); extern void spa_load_spares(spa_t *spa); extern void spa_load_l2cache(spa_t *spa); extern sysevent_t *spa_event_create(spa_t *spa, vdev_t *vd, nvlist_t *hist_nvl, diff --git a/module/zfs/spa.c b/module/zfs/spa.c index 9eb14b4f1d..a1258546c8 100644 --- a/module/zfs/spa.c +++ b/module/zfs/spa.c @@ -1520,19 +1520,6 @@ spa_taskq_dispatch_ent(spa_t *spa, zio_type_t t, zio_taskq_type_t q, taskq_dispatch_ent(tq, func, arg, flags, ent); } -/* - * Same as spa_taskq_dispatch_ent() but block on the task until completion. - */ -void -spa_taskq_dispatch_sync(spa_t *spa, zio_type_t t, zio_taskq_type_t q, - task_func_t *func, void *arg, uint_t flags) -{ - taskq_t *tq = spa_taskq_dispatch_select(spa, t, q, NULL); - taskqid_t id = taskq_dispatch(tq, func, arg, flags); - if (id) - taskq_wait_id(tq, id); -} - static void spa_create_zio_taskqs(spa_t *spa) {