From 8f16c5ed15e3c0cfbef396c63dbc45778ea84475 Mon Sep 17 00:00:00 2001 From: Kaushik BV Date: Thu, 4 Nov 2010 05:11:50 +0000 Subject: Remove the hard-coded thread-count option in volgen Signed-off-by: Kaushik BV Signed-off-by: Anand V. Avati BUG: 1159 () URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1159 --- xlators/mgmt/glusterd/src/glusterd-volgen.c | 3 --- xlators/performance/io-threads/src/io-threads.h | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/xlators/mgmt/glusterd/src/glusterd-volgen.c b/xlators/mgmt/glusterd/src/glusterd-volgen.c index 158a49654..738cde83f 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 df1601846..885015c18 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 -- cgit