]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/librbd/image_watcher/NotifyLockOwner.cc
import 15.2.0 Octopus source
[ceph.git] / ceph / src / librbd / image_watcher / NotifyLockOwner.cc
index ead5f214c2233dfca0944a1dd3fac4d03eb7a71c..1d34106f9d937538c148738751ee006aec0edc03 100644 (file)
@@ -36,7 +36,7 @@ void NotifyLockOwner::send_notify() {
   CephContext *cct = m_image_ctx.cct;
   ldout(cct, 20) << dendl;
 
-  ceph_assert(m_image_ctx.owner_lock.is_locked());
+  ceph_assert(ceph_mutex_is_locked(m_image_ctx.owner_lock));
   m_notifier.notify(m_bl, &m_notify_response, create_context_callback<
     NotifyLockOwner, &NotifyLockOwner::handle_notify>(this));
 }