]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
src/librbd: add more debugging to ImageWatcher
authorDeepika Upadhyay <dupadhya@redhat.com>
Wed, 19 May 2021 13:01:34 +0000 (18:31 +0530)
committerDeepika Upadhyay <dupadhya@redhat.com>
Mon, 2 Aug 2021 13:16:25 +0000 (18:46 +0530)
Signed-off-by: Deepika Upadhyay <dupadhya@redhat.com>
src/librbd/ImageWatcher.cc
src/librbd/image_watcher/NotifyLockOwner.cc

index b2f9d610d7d2e1c7d78f577ca00e5622782b5c86..f4fdc54b90d116196bbd20932c7aba21dc712abc 100644 (file)
@@ -717,6 +717,8 @@ Context *ImageWatcher<I>::remove_async_request(const AsyncRequestId &id,
                                                ceph::shared_mutex &lock) {
   ceph_assert(ceph_mutex_is_locked(lock));
 
+  ldout(m_image_ctx.cct, 20) << __func__ << ": " << id << dendl;
+
   auto it = m_async_requests.find(id);
   if (it != m_async_requests.end()) {
     Context *on_complete = it->second.first;
index e37fb597e7e3aac3b467d54223d6cd119e626910..fe441d7f259ddb826870652b439d16063bfa0d44 100644 (file)
@@ -80,6 +80,7 @@ void NotifyLockOwner::handle_notify(int r) {
     decode(response_message, iter);
 
     r = response_message.result;
+    ldout(cct, 20) << " client responded with r=" << r << dendl;
   } catch (const buffer::error &err) {
     r = -EINVAL;
   }