diff --git a/cmd/ztest/ztest.c b/cmd/ztest/ztest.c index 736e175f1d..126ab990ad 100644 --- a/cmd/ztest/ztest.c +++ b/cmd/ztest/ztest.c @@ -2937,15 +2937,18 @@ ztest_spa_import_export(char *oldname, char *newname) nvlist_free(config); } -static void -ztest_resume(spa_t *spa) +static void * +ztest_resume(void *arg) { + spa_t *spa = arg; + if (spa_suspended(spa)) { spa_vdev_state_enter(spa); vdev_clear(spa, NULL); (void) spa_vdev_state_exit(spa, NULL, 0); zio_resume(spa); } + return (NULL); } static void *