diff options
author | Mohit Agrawal <moagrawal@redhat.com> | 2019-12-10 08:35:23 +0530 |
---|---|---|
committer | Rinku Kothiya <rkothiya@redhat.com> | 2019-12-13 07:07:52 +0000 |
commit | 749c1b461cc38b0f61a7d9bfdfe54af7d24ee69b (patch) | |
tree | cd80422532986b4fbe6abd897d47bade330bf50a /libglusterfs | |
parent | 6db4846134c9bd2558d5635e435300ae669496c9 (diff) |
rpc: event_slot_alloc converted infinite loop after reach slot_used to 1024
Problem: In the commit faf5ac13c4ee00a05e9451bf8da3be2a9043bbf2 missed one
condition to come out from the loop so after reach the slot_used to
1024 loop has become infinite loop
Solution: Correct the code path to avoid the infinite loop
> Change-Id: Ia02a109571f0d8cc9902c32db3e9b9282ee5c1db
> Fixes: bz#1781440
> Credits: Xavi Hernandez <xhernandez@redhat.com>
> Signed-off-by: Mohit Agrawal <moagrawal@redhat.com>
> (cherry picked from commit 8030f9c0f092170ceb50cedf59b9c330022825b7)
Change-Id: Ia02a109571f0d8cc9902c32db3e9b9282ee5c1db
Fixes: bz#1782826
Credits: Xavi Hernandez <xhernandez@redhat.com>
Signed-off-by: Mohit Agrawal <moagrawal@redhat.com>
Diffstat (limited to 'libglusterfs')
-rw-r--r-- | libglusterfs/src/event-epoll.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libglusterfs/src/event-epoll.c b/libglusterfs/src/event-epoll.c index 944715a084f..bfe2648a920 100644 --- a/libglusterfs/src/event-epoll.c +++ b/libglusterfs/src/event-epoll.c @@ -86,7 +86,7 @@ retry: while (i < EVENT_EPOLL_TABLES) { switch (event_pool->slots_used[i]) { case EVENT_EPOLL_SLOTS: - continue; + break; case 0: if (!event_pool->ereg[i]) { table = __event_newtable(event_pool, i); |