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