]> granicus.if.org Git - zfs/commitdiff
Use pthread versions
authorBrian Behlendorf <behlendorf1@llnl.gov>
Tue, 23 Dec 2008 00:26:23 +0000 (16:26 -0800)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Tue, 23 Dec 2008 00:26:23 +0000 (16:26 -0800)
cmd/ztest/ztest.c

index 4aba991260e5fc35ebc494dc84c59e70ce049505..750ca2a8c7f53bc59a4434dfc0b495d64bbf729a 100644 (file)
@@ -986,7 +986,7 @@ ztest_vdev_attach_detach(ztest_args_t *za)
        int oldvd_is_log;
        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);
 
@@ -1039,7 +1039,7 @@ ztest_vdev_attach_detach(ztest_args_t *za)
                if (error != 0 && error != ENODEV && error != EBUSY)
                        fatal(0, "detach (%s) returned %d",
                            oldpath, error);
-               (void) mutex_unlock(&ztest_shared->zs_vdev_lock);
+               (void) pthread_mutex_unlock(&ztest_shared->zs_vdev_lock);
                return;
        }