From 649b67231625b005aa16ac3610103f0931935b66 Mon Sep 17 00:00:00 2001 From: Yehuda Sadeh Date: Tue, 29 Sep 2015 11:33:21 -0700 Subject: [PATCH] rgw: simplify unblocked by stack state change If blocked by another stack that is finished, just schedule, not waiting on IO. Signed-off-by: Yehuda Sadeh --- src/rgw/rgw_coroutine.cc | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/rgw/rgw_coroutine.cc b/src/rgw/rgw_coroutine.cc index 01d0182c1a5d8..73e6bc96077ac 100644 --- a/src/rgw/rgw_coroutine.cc +++ b/src/rgw/rgw_coroutine.cc @@ -344,11 +344,7 @@ int RGWCoroutinesManager::run(list& stacks) RGWCoroutinesStack *s; while (stack->unblock_stack(&s)) { if (!s->is_blocked_by_stack() && !s->is_done()) { - if (s->is_io_blocked()) { - blocked_count++; - } else { - s->schedule(); - } + s->schedule(); } } if (stack->parent && stack->parent->waiting_for_child()) { -- 2.39.5