]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
os/bluestore: reduce kv_submitted_waiters if _is_all_kv_submitted() return true.
authorJianpeng Ma <jianpeng.ma@intel.com>
Mon, 30 Oct 2017 12:22:16 +0000 (20:22 +0800)
committerJianpeng Ma <jianpeng.ma@intel.com>
Mon, 30 Oct 2017 12:22:16 +0000 (20:22 +0800)
Signed-off-by: Jianpeng Ma <jianpeng.ma@intel.com>
src/os/bluestore/BlueStore.h

index 59e286d7a34e815ee145404d6d0e827f4c4f92c3..c1ee32f7d54a37b369d432a2b0753bc1cacce8c0 100644 (file)
@@ -1741,6 +1741,7 @@ public:
        // sure those threads see waiters and signal qcond.
        ++kv_submitted_waiters;
        if (_is_all_kv_submitted()) {
+         --kv_submitted_waiters;
          return;
        }
        qcond.wait(l);