a3470f
From 471455f0fce403570b367ea5677ed9a9e198a1c7 Mon Sep 17 00:00:00 2001
a3470f
From: Milind Changire <mchangir@redhat.com>
a3470f
Date: Mon, 21 May 2018 12:15:59 +0530
a3470f
Subject: [PATCH 278/282] Revert "rpcsvc: correct event-thread scaling"
a3470f
a3470f
This reverts commit 96146ccae552c648f33a19783fad824cf8101790.
a3470f
a3470f
> Reviewed-on: https://code.engineering.redhat.com/gerrit/132509
a3470f
a3470f
Change-Id: I5b44bcce0dd36620b580acf1b0aedbc7b79934f5
a3470f
BUG: 1558989
a3470f
Signed-off-by: Milind Changire <mchangir@redhat.com>
a3470f
Reviewed-on: https://code.engineering.redhat.com/gerrit/139306
a3470f
Tested-by: RHGS Build Bot <nigelb@redhat.com>
a3470f
Reviewed-by: Raghavendra Gowdappa <rgowdapp@redhat.com>
a3470f
Reviewed-by: Sunil Kumar Heggodu Gopala Acharya <sheggodu@redhat.com>
a3470f
---
a3470f
 xlators/protocol/server/src/server.c | 7 +++----
a3470f
 1 file changed, 3 insertions(+), 4 deletions(-)
a3470f
a3470f
diff --git a/xlators/protocol/server/src/server.c b/xlators/protocol/server/src/server.c
a3470f
index d40457c..79f68e8 100644
a3470f
--- a/xlators/protocol/server/src/server.c
a3470f
+++ b/xlators/protocol/server/src/server.c
a3470f
@@ -1042,11 +1042,10 @@ do_rpc:
a3470f
         }
a3470f
 
a3470f
         /*
a3470f
-         * Update:
a3470f
-         * We don't need to reset auto_thread_count since it has been derived
a3470f
-         * out of the total bricks attached. We can reconfigure event threads
a3470f
-         * but not auto threads.
a3470f
+         * Let the event subsystem know that we're auto-scaling, with an
a3470f
+         * initial count of one.
a3470f
          */
a3470f
+        ((struct event_pool *)(this->ctx->event_pool))->auto_thread_count = 1;
a3470f
 
a3470f
         GF_OPTION_RECONF ("event-threads", new_nthread, options, int32, out);
a3470f
         ret = server_check_event_threads (this, conf, new_nthread);
a3470f
-- 
a3470f
1.8.3.1
a3470f