]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
librbd: execute flush completion outside of cache_lock
authorJason Dillaman <dillaman@redhat.com>
Thu, 30 Apr 2015 19:34:43 +0000 (15:34 -0400)
committerJason Dillaman <dillaman@redhat.com>
Thu, 4 Jun 2015 20:52:04 +0000 (16:52 -0400)
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
src/librbd/ImageCtx.cc

index 0e12de2756e16389182a5b0b3e846ac608c9521a..7d10713fa346a64a3d37630ed69d72c5a2e358ea 100644 (file)
@@ -720,7 +720,8 @@ public:
                  << unclean << " bytes remain" << dendl;
       r = -EBUSY;
     }
-    on_finish->complete(r);
+
+    op_work_queue->queue(on_finish, r);
   }
 
   void ImageCtx::clear_nonexistence_cache() {