From: Jason Dillaman Date: Mon, 17 Aug 2015 18:21:16 +0000 (-0400) Subject: librbd: do not send duplicate lock event X-Git-Tag: v10.0.2~193^2~22 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=daf36f032cf2179b2656377408012af9815526e1;p=ceph.git librbd: do not send duplicate lock event No need to alert clients that the lock has been released since it is already handled by ImageWatcher::release_lock Signed-off-by: Jason Dillaman --- diff --git a/src/librbd/ImageWatcher.cc b/src/librbd/ImageWatcher.cc index a21b6c204d5b..d884617bb434 100644 --- a/src/librbd/ImageWatcher.cc +++ b/src/librbd/ImageWatcher.cc @@ -1208,10 +1208,6 @@ void ImageWatcher::reregister_watch() { << "image watch" << cpp_strerror(r) << dendl; } } - - if (m_lock_owner_state == LOCK_OWNER_STATE_NOT_LOCKED) { - notify_listeners_updated_lock(LOCK_UPDATE_STATE_UNLOCKED); - } } void ImageWatcher::WatchCtx::handle_notify(uint64_t notify_id,