From 27450d72caedf9d92d29db262da4910597f7540a Mon Sep 17 00:00:00 2001 From: Yehuda Sadeh Date: Tue, 29 Sep 2015 14:45:52 -0700 Subject: [PATCH] Revert "rgw: simplify unblocked by stack state change" This reverts commit 8509ef5034818e163bebc8fd2de039a96b4a8f1a. --- src/rgw/rgw_coroutine.cc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/rgw/rgw_coroutine.cc b/src/rgw/rgw_coroutine.cc index ae5a2cd9d696b..517dc78a3dd23 100644 --- a/src/rgw/rgw_coroutine.cc +++ b/src/rgw/rgw_coroutine.cc @@ -344,7 +344,11 @@ int RGWCoroutinesManager::run(list& stacks) RGWCoroutinesStack *s; while (stack->unblock_stack(&s)) { if (!s->is_blocked_by_stack() && !s->is_done()) { - s->schedule(); + if (s->is_io_blocked()) { + blocked_count++; + } else { + s->schedule(); + } } } if (stack->parent && stack->parent->waiting_for_child()) { -- 2.39.5