diff options
author | Krishnan Parthasarathi <[email protected]> | 2015-08-13 14:39:58 +0530 |
---|---|---|
committer | Niels de Vos <[email protected]> | 2015-08-21 05:03:06 -0700 |
commit | d80537d8e588da57db609332c2d89873e0a368ca (patch) | |
tree | 24891f4c94d3b5542e8404f6c074870863b922ac /libglusterfs/src/event-poll.c | |
parent | e4cefd6c5915dd47c6b42098236df3901665f93a (diff) | |
download | glusterfs-d80537d8e588da57db609332c2d89873e0a368ca.tar.gz glusterfs-d80537d8e588da57db609332c2d89873e0a368ca.tar.xz glusterfs-d80537d8e588da57db609332c2d89873e0a368ca.zip |
event: add dispatched flag to know if event_dispatch was called
This is important for glusterfs processes that choose to reconfigure
no. of event-threads (a.k.a epoll worker-threads) before they call
event_dispatch on the event_pool. glusterd needs this today.
Change-Id: Ia8df3c958545324472262c555ed84b71797f002e
BUG: 1242421
Signed-off-by: Krishnan Parthasarathi <[email protected]>
Reviewed-on: http://review.gluster.org/11911
Tested-by: NetBSD Build System <[email protected]>
Reviewed-by: Niels de Vos <[email protected]>
Tested-by: Gluster Build System <[email protected]>
Diffstat (limited to 'libglusterfs/src/event-poll.c')
-rw-r--r-- | libglusterfs/src/event-poll.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libglusterfs/src/event-poll.c b/libglusterfs/src/event-poll.c index 09e9ce4c9f..815e936548 100644 --- a/libglusterfs/src/event-poll.c +++ b/libglusterfs/src/event-poll.c @@ -493,6 +493,11 @@ int event_reconfigure_threads_poll (struct event_pool *event_pool, int value) { /* No-op for poll */ + /* One could check event_pool->dispatched before creating threads when + * multi-threaded poll based support is implemented. + * event_pool->dispatch indicates if event_dispatch was called. + * */ + return 0; } |