summaryrefslogtreecommitdiffstats
path: root/xlators
diff options
context:
space:
mode:
authorShehjar Tikoo <shehjart@zresearch.com>2009-04-10 07:09:49 -0700
committerAnand V. Avati <avati@amp.gluster.com>2009-04-12 11:59:24 +0530
commitfa9eb588fbe758cbc1ebe727d2455f1dcd0b065f (patch)
treea93e620f511c30fce2b0ed692b69f5ada17fe424 /xlators
parent4f81149489ae80b20ac28d1fdbe48ee56d0a181b (diff)
io-threads: Remove unnecessary call to pthread_attr_setstacksize
We do not need to explicitly set the stack size to its default value. Signed-off-by: Anand V. Avati <avati@amp.gluster.com>
Diffstat (limited to 'xlators')
-rw-r--r--xlators/performance/io-threads/src/io-threads.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/xlators/performance/io-threads/src/io-threads.c b/xlators/performance/io-threads/src/io-threads.c
index 3477cb33ac6..001300c7144 100644
--- a/xlators/performance/io-threads/src/io-threads.c
+++ b/xlators/performance/io-threads/src/io-threads.c
@@ -1792,11 +1792,7 @@ set_stack_size (iot_conf_t *conf)
if (err == EINVAL) {
gf_log (conf->this->name, GF_LOG_WARNING,
"Using default thread stack size");
- stacksize = 0;
}
-
- pthread_attr_setstacksize (&conf->w_attr, stacksize);
-
}
static void