diff options
Diffstat (limited to 'libglusterfs/src/event-poll.c')
| -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;  }  | 
