From 8070ba7bea2a2632042dcc7377b4dfef1fe8ab69 Mon Sep 17 00:00:00 2001 From: Brian Behlendorf Date: Wed, 8 Jul 2009 15:58:28 -0700 Subject: [PATCH] Untracked pthread changes which must have accidentally crept in. This is exactly the reason why I want a new topgit command which takes the base, then incrementally applies all the patches and compares them againsts what is actually committed. This would ensure this sort of thing doesn't happen! --- cmd/ztest/ztest.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cmd/ztest/ztest.c b/cmd/ztest/ztest.c index a94fb00bbc..102f7220e9 100644 --- a/cmd/ztest/ztest.c +++ b/cmd/ztest/ztest.c @@ -1321,17 +1321,17 @@ ztest_vdev_LUN_growth(ztest_args_t *za) } (void) spa_config_exit(spa, SCL_STATE, spa); - pthread_mutex_exit(&spa_namespace_lock); + mutex_exit(&spa_namespace_lock); /* * Expanding the LUN will update the config asynchronously, * thus we must wait for the async thread to complete any * pending tasks before proceeding. */ - pthread_mutex_enter(&spa->spa_async_lock); + mutex_enter(&spa->spa_async_lock); while (spa->spa_async_thread != NULL || spa->spa_async_tasks) cv_wait(&spa->spa_async_cv, &spa->spa_async_lock); - pthread_mutex_exit(&spa->spa_async_lock); + mutex_exit(&spa->spa_async_lock); spa_config_enter(spa, SCL_STATE, spa, RW_READER); spa_newsize = spa_get_space(spa);