]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
librbd: do not send duplicate lock event
authorJason Dillaman <dillaman@redhat.com>
Mon, 17 Aug 2015 18:21:16 +0000 (14:21 -0400)
committerJason Dillaman <dillaman@redhat.com>
Thu, 19 Nov 2015 01:34:37 +0000 (20:34 -0500)
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 <dillaman@redhat.com>
src/librbd/ImageWatcher.cc

index a21b6c204d5b33e4620e469664a90f94210ed6ae..d884617bb43470e132bac8f57efff195336ab9b8 100644 (file)
@@ -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,