From 5fab029ee6b4c5a438309fd795bd1c8f808a43cd Mon Sep 17 00:00:00 2001 From: sageweil Date: Fri, 24 Aug 2007 17:54:16 +0000 Subject: [PATCH] small ebofs fix git-svn-id: https://ceph.svn.sf.net/svnroot/ceph@1676 29311d96-e01e-0410-9327-a35deaab8ce9 --- trunk/ceph/ebofs/BlockDevice.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/trunk/ceph/ebofs/BlockDevice.cc b/trunk/ceph/ebofs/BlockDevice.cc index 9537ded0234b0..bd65ea8cd2179 100644 --- a/trunk/ceph/ebofs/BlockDevice.cc +++ b/trunk/ceph/ebofs/BlockDevice.cc @@ -397,7 +397,8 @@ void* BlockDevice::io_thread_entry() } // should i _still_ be sleeping? - if (root_queue.empty() && io_threads_running == 0) { + if (!io_stop && + root_queue.empty() && io_threads_running == 0) { dout(20) << "io_thread" << whoami << " did the kick, now waiting for signal" << dendl; io_wakeup.Wait(lock); // and wait (if condition still holds) } else { -- 2.39.5