From adda768e3eb931b82e8477eb9287f7ca9c881a98 Mon Sep 17 00:00:00 2001 From: Rob Norris Date: Thu, 2 May 2024 12:04:24 +1000 Subject: [PATCH] spa: remove spa_taskq_dispatch_sync() It has no callers anymore. Sponsored-by: Klara, Inc. Sponsored-by: Wasabi Technology, Inc. Reviewed-by: Brian Behlendorf Reviewed-by: Alexander Motin Signed-off-by: Rob Norris Closes #16151 --- include/sys/spa_impl.h | 2 -- module/zfs/spa.c | 13 ------------- 2 files changed, 15 deletions(-) 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) {