diff --git a/cmd/ztest/ztest.c b/cmd/ztest/ztest.c index 6fb9c60caf..a9873ab197 100644 --- a/cmd/ztest/ztest.c +++ b/cmd/ztest/ztest.c @@ -1132,7 +1132,7 @@ ztest_vdev_attach_detach(ztest_args_t *za) (longlong_t)newsize, replacing, error, expected_error); } - (void) mutex_unlock(&ztest_shared->zs_vdev_lock); + (void) pthread_mutex_unlock(&ztest_shared->zs_vdev_lock); } /*