summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKaushik BV <kaushikbv@gluster.com>2010-11-04 05:11:50 +0000
committerAnand V. Avati <avati@dev.gluster.com>2010-11-07 20:15:18 -0800
commit8f16c5ed15e3c0cfbef396c63dbc45778ea84475 (patch)
tree9867d4e14d52c9225abe49d43f53b334c26dcd7b
parent9c4777534bdcce46f2391852933336bc73309f93 (diff)
Remove the hard-coded thread-count option in volgen
Signed-off-by: Kaushik BV <kaushikbv@gluster.com> Signed-off-by: Anand V. Avati <avati@dev.gluster.com> BUG: 1159 () URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1159
-rw-r--r--xlators/mgmt/glusterd/src/glusterd-volgen.c3
-rw-r--r--xlators/performance/io-threads/src/io-threads.h2
2 files changed, 1 insertions, 4 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-volgen.c b/xlators/mgmt/glusterd/src/glusterd-volgen.c
index 158a4965452..738cde83f7b 100644
--- a/xlators/mgmt/glusterd/src/glusterd-volgen.c
+++ b/xlators/mgmt/glusterd/src/glusterd-volgen.c
@@ -1026,9 +1026,6 @@ server_graph_builder (glusterfs_graph_t *graph, glusterd_volinfo_t *volinfo,
xl = volgen_graph_add (graph, "performance/io-threads", volname);
if (!xl)
return -1;
- ret = xlator_set_option (xl, "thread-count", "16");
- if (ret)
- return -1;
xl = volgen_graph_add_as (graph, "debug/io-stats", path);
if (!xl)
diff --git a/xlators/performance/io-threads/src/io-threads.h b/xlators/performance/io-threads/src/io-threads.h
index df1601846fa..885015c183b 100644
--- a/xlators/performance/io-threads/src/io-threads.h
+++ b/xlators/performance/io-threads/src/io-threads.h
@@ -46,7 +46,7 @@ struct iot_conf;
#define IOT_DEFAULT_IDLE 120 /* In secs. */
#define IOT_MIN_THREADS 1
-#define IOT_DEFAULT_THREADS 8
+#define IOT_DEFAULT_THREADS 16
#define IOT_MAX_THREADS 64