]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
Merge pull request #7667 from jdurgin/wip-14780
authorJason Dillaman <dillaman@redhat.com>
Tue, 23 Feb 2016 18:14:23 +0000 (13:14 -0500)
committerJason Dillaman <dillaman@redhat.com>
Tue, 23 Feb 2016 18:14:23 +0000 (13:14 -0500)
Revert "librbd: use task finisher per CephContext"

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
1  2 
src/librbd/ImageWatcher.cc

index b1786f7e18ee6202ea84883df97fd19ca228dbbf,1e0b23c584b739c792d8fab5af240df0c9896e3e..3510028e281d30782964ad5aae25ec8b676624ed
@@@ -38,12 -34,10 +38,11 @@@ ImageWatcher::ImageWatcher(ImageCtx &im
      m_watch_lock(util::unique_lock_name("librbd::ImageWatcher::m_watch_lock", this)),
      m_watch_ctx(*this), m_watch_handle(0),
      m_watch_state(WATCH_STATE_UNREGISTERED),
+     m_task_finisher(new TaskFinisher<Task>(*m_image_ctx.cct)),
      m_async_request_lock(util::unique_lock_name("librbd::ImageWatcher::m_async_request_lock", this)),
 -    m_owner_client_id_lock(util::unique_lock_name("librbd::ImageWatcher::m_owner_client_id_lock", this))
 +    m_owner_client_id_lock(util::unique_lock_name("librbd::ImageWatcher::m_owner_client_id_lock", this)),
 +    m_notifier(image_ctx)
  {
-   m_image_ctx.cct->lookup_or_create_singleton_object<TaskFinisher<Task> >(
-     m_task_finisher, "librbd::task_finisher");
  }
  
  ImageWatcher::~ImageWatcher()