From 4a3bc8f85e06bf7e38b01749cc2cf322c9d7a3ae Mon Sep 17 00:00:00 2001 From: songshun Date: Thu, 30 Aug 2018 20:37:31 +0800 Subject: [PATCH] rbd: fix possible unnecessary latency when requeue request fix possible unnecessary latency when requeue request Signed-off-by: Song Shun --- src/common/WorkQueue.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/WorkQueue.cc b/src/common/WorkQueue.cc index 2e68c8d6fa58..98453acf73e7 100644 --- a/src/common/WorkQueue.cc +++ b/src/common/WorkQueue.cc @@ -103,7 +103,7 @@ void ThreadPool::worker(WorkThread *wt) if (!_pause && !work_queues.empty()) { WorkQueue_* wq; - int tries = work_queues.size(); + int tries = 2 * work_queues.size(); bool did = false; while (tries--) { next_work_queue %= work_queues.size(); -- 2.47.3