$NetBSD: patch-bt,v 1.6 2011/10/06 02:19:06 manu Exp $

Initialize pthread_cond_t, it hurts otherwise.

--- xlators/performance/io-threads/src/io-threads.c.orig	2011-08-23 14:31:41.000000000 +0200
+++ xlators/performance/io-threads/src/io-threads.c	2011-09-17 15:45:30.000000000 +0200
@@ -2194,8 +2194,20 @@
                         "pthread_mutex_init failed (%d)", ret);
                 goto out;
         }
 
+	if ((ret = pthread_cond_init(&conf->cond, NULL)) != 0) {
+                gf_log (this->name, GF_LOG_ERROR,
+                        "pthread_cond_init failed (%d)", ret);
+                goto out;
+	}
+
+	if ((ret = pthread_mutex_init(&conf->mutex, NULL)) != 0) {
+                gf_log (this->name, GF_LOG_ERROR,
+                        "pthread_mutex_init failed (%d)", ret);
+                goto out;
+	}
+
         set_stack_size (conf);
 
         if (xlator_get_volopt_info (&this->volume_options, "thread-count",
                                     &def_val, NULL)) {
