From: Deepika Upadhyay Date: Wed, 19 May 2021 13:01:34 +0000 (+0530) Subject: src/librbd: add more debugging to ImageWatcher X-Git-Tag: v17.1.0~1054^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=2570d933337fcbe5e98e805a6ebc32b159e1877f;p=ceph.git src/librbd: add more debugging to ImageWatcher Signed-off-by: Deepika Upadhyay --- diff --git a/src/librbd/ImageWatcher.cc b/src/librbd/ImageWatcher.cc index b2f9d610d7d2..f4fdc54b90d1 100644 --- a/src/librbd/ImageWatcher.cc +++ b/src/librbd/ImageWatcher.cc @@ -717,6 +717,8 @@ Context *ImageWatcher::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; diff --git a/src/librbd/image_watcher/NotifyLockOwner.cc b/src/librbd/image_watcher/NotifyLockOwner.cc index e37fb597e7e3..fe441d7f259d 100644 --- a/src/librbd/image_watcher/NotifyLockOwner.cc +++ b/src/librbd/image_watcher/NotifyLockOwner.cc @@ -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; }