Blob Blame History Raw
From b6f000f237eccf13ac3a1f2902d1fec8794e88cd Mon Sep 17 00:00:00 2001
From: David Vossel <dvossel@redhat.com>
Date: Tue, 14 Apr 2015 11:52:59 -0400
Subject: [PATCH 1/4] High: loop: fixes resource starvation in mainloop code

---
 lib/loop_poll.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/loop_poll.c b/lib/loop_poll.c
index 49c9650..117a276 100644
--- a/lib/loop_poll.c
+++ b/lib/loop_poll.c
@@ -110,7 +110,7 @@ _poll_dispatch_and_take_back_(struct qb_loop_item *item,
 				   pe->item.user_data);
 	if (res < 0) {
 		_poll_entry_mark_deleted_(pe);
-	} else {
+	} else if (pe->state != QB_POLL_ENTRY_DELETED) {
 		pe->state = QB_POLL_ENTRY_ACTIVE;
 		pe->ufd.revents = 0;
 	}
-- 
1.8.4.2