diff options
author | Milind Changire <mchangir@redhat.com> | 2018-02-26 15:14:18 +0530 |
---|---|---|
committer | Milind Changire <mchangir@redhat.com> | 2018-02-26 15:14:38 +0530 |
commit | 7d641313f46789ec0a7ba0cc04f504724c780855 (patch) | |
tree | 6111a02fd1e338de69bae6acdea833c946b1fb94 /libglusterfs | |
parent | a1e59bc8fd220b4cba038e2db2630665ba871b50 (diff) |
rpcsvc: scale rpcsvc_request_handler threads
Scale rpcsvc_request_handler threads to match the scaling of event
handler threads.
Please refer to https://bugzilla.redhat.com/show_bug.cgi?id=1467614#c51
for a discussion about why we need multi-threaded rpcsvc request
handlers.
Change-Id: Ib6838fb8b928e15602a3d36fd66b7ba08999430b
Signed-off-by: Milind Changire <mchangir@redhat.com>
Diffstat (limited to 'libglusterfs')
-rw-r--r-- | libglusterfs/src/event-poll.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/libglusterfs/src/event-poll.c b/libglusterfs/src/event-poll.c index 3bffc4784d7..b1aca826759 100644 --- a/libglusterfs/src/event-poll.c +++ b/libglusterfs/src/event-poll.c @@ -173,6 +173,13 @@ event_pool_new_poll (int count, int eventthreadcount) "thread count (%d) ignored", eventthreadcount); } + /* although, eventhreadcount for poll implementaiton is always + * going to be 1, eventthreadcount needs to be set to 1 so that + * rpcsvc_request_handler() thread scaling works flawlessly in + * both epoll and poll models + */ + event_pool->eventthreadcount = 1; + return event_pool; } |