]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
os/bluestore: re-add is_locked assert
authorSage Weil <sage@redhat.com>
Wed, 10 Oct 2018 17:57:41 +0000 (12:57 -0500)
committerSage Weil <sage@redhat.com>
Sun, 14 Oct 2018 17:10:20 +0000 (12:10 -0500)
We have this now with ceph::mutex

Signed-off-by: Sage Weil <sage@redhat.com>
src/os/bluestore/BlueStore.cc

index 3d0774419f8122057c7eaa6dd79008e15f3dbba5..a70aa0eff38e73260951fa9725fcfc3d452f8d52 100644 (file)
@@ -8693,7 +8693,7 @@ void BlueStore::_txc_state_proc(TransContext *txc)
       return;
 
     case TransContext::STATE_IO_DONE:
-      //assert(txc->osr->qlock.is_locked());  // see _txc_finish_io
+      assert(ceph_mutex_is_locked(txc->osr->qlock));  // see _txc_finish_io
       if (txc->had_ios) {
        ++txc->osr->txc_with_unstable_io;
       }