Use pthread versions

This commit is contained in:
Brian Behlendorf 2008-12-22 16:26:23 -08:00
parent 50735743b7
commit dee065ca8d
1 changed files with 2 additions and 2 deletions

View File

@ -986,7 +986,7 @@ ztest_vdev_attach_detach(ztest_args_t *za)
int oldvd_is_log; int oldvd_is_log;
int error, expected_error; int error, expected_error;
(void) mutex_lock(&ztest_shared->zs_vdev_lock); (void) pthread_mutex_lock(&ztest_shared->zs_vdev_lock);
spa_config_enter(spa, SCL_VDEV, FTAG, RW_READER); spa_config_enter(spa, SCL_VDEV, FTAG, RW_READER);
@ -1039,7 +1039,7 @@ ztest_vdev_attach_detach(ztest_args_t *za)
if (error != 0 && error != ENODEV && error != EBUSY) if (error != 0 && error != ENODEV && error != EBUSY)
fatal(0, "detach (%s) returned %d", fatal(0, "detach (%s) returned %d",
oldpath, error); oldpath, error);
(void) mutex_unlock(&ztest_shared->zs_vdev_lock); (void) pthread_mutex_unlock(&ztest_shared->zs_vdev_lock);
return; return;
} }