From dedf2bde88020adbabb80204830878f060fa614c Mon Sep 17 00:00:00 2001 From: Krishnan Parthasarathi Date: Fri, 28 Aug 2015 14:27:20 +0530 Subject: event-epoll: Use pollers[] to check if event_pool_dispatch was called BUG: 1242421 Change-Id: I1a0044653f15d33f89ffe16edc5baba40393dec3 Signed-off-by: Krishnan Parthasarathi Reviewed-on: http://review.gluster.org/12004 Tested-by: NetBSD Build System Reviewed-by: Shyamsundar Ranganathan Reviewed-by: Raghavendra Talur --- libglusterfs/src/event.c | 4 ---- 1 file changed, 4 deletions(-) (limited to 'libglusterfs/src/event.c') diff --git a/libglusterfs/src/event.c b/libglusterfs/src/event.c index ce976f11d50..75b73059112 100644 --- a/libglusterfs/src/event.c +++ b/libglusterfs/src/event.c @@ -124,10 +124,6 @@ event_dispatch (struct event_pool *event_pool) if (ret) goto out; - pthread_mutex_lock (&event_pool->mutex); - { - event_pool->dispatched = 1; - } pthread_mutex_unlock (&event_pool->mutex); out: return ret; -- cgit