mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-12-25 18:59:33 +03:00
spa: remove spa_taskq_dispatch_sync()
It has no callers anymore. Sponsored-by: Klara, Inc. Sponsored-by: Wasabi Technology, Inc. Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Reviewed-by: Alexander Motin <mav@FreeBSD.org> Signed-off-by: Rob Norris <rob.norris@klarasystems.com> Closes #16151
This commit is contained in:
parent
cc38691534
commit
adda768e3e
@ -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,
|
||||
|
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user