From 23bec6b810bfd0ae78eb9ba2e9c644c42a3da1da Mon Sep 17 00:00:00 2001 From: Anand Avati Date: Mon, 21 Jun 2010 02:17:49 +0000 Subject: io-threads: initialize conf->w_attr Uninitialized value was causing pthread_create() to fail on solaris resulting in hung calls Signed-off-by: Anand V. Avati Signed-off-by: Anand V. Avati BUG: 1001 (unclean termination upon getting signalled) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1001 --- xlators/performance/io-threads/src/io-threads.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/xlators/performance/io-threads/src/io-threads.c b/xlators/performance/io-threads/src/io-threads.c index 74a20a4dee3..7f265d1dd26 100644 --- a/xlators/performance/io-threads/src/io-threads.c +++ b/xlators/performance/io-threads/src/io-threads.c @@ -2158,6 +2158,8 @@ init (xlator_t *this) goto out; } + set_stack_size (conf); + thread_count = IOT_DEFAULT_THREADS; if (dict_get (options, "thread-count")) { -- cgit