From 27049148c7045335a88c2da58343a7dc51ab3174 Mon Sep 17 00:00:00 2001 From: Jason Dillaman Date: Mon, 10 Nov 2014 16:08:05 -0500 Subject: [PATCH] common/Readahead: use correct lock when waiting on the pending ops Readahead was using the incorrect lock with the pending condition, resulting in a failed assertion. It now uses the lock associated with pending ops. Fixes: #10045 Signed-off-by: Jason Dillaman --- src/common/Readahead.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/Readahead.cc b/src/common/Readahead.cc index fb53e5e9bac0..a3f5bfc7e4e7 100644 --- a/src/common/Readahead.cc +++ b/src/common/Readahead.cc @@ -131,7 +131,7 @@ void Readahead::dec_pending(int count) { void Readahead::wait_for_pending() { m_pending_lock.Lock(); while (m_pending > 0) { - m_pending_cond.Wait(m_lock); + m_pending_cond.Wait(m_pending_lock); } m_pending_lock.Unlock(); } -- 2.47.3