]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
librbd: drop deferred AsioEngine destruction 36774/head
authorJason Dillaman <dillaman@redhat.com>
Mon, 24 Aug 2020 17:31:17 +0000 (13:31 -0400)
committerJason Dillaman <dillaman@redhat.com>
Mon, 24 Aug 2020 17:32:33 +0000 (13:32 -0400)
Commit 90bd1d7a857c0f3c57bda60975f58f9859940185 removed the need to
defer deletion of the AsioEngine but missed removing the original
code.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
src/librbd/ImageCtx.cc

index 6c4f3f574826f06e856cef6f76261514cf6e89b4..8d88e03d7b73bbec3f012ab3bb64874e40baf660 100644 (file)
@@ -173,11 +173,6 @@ librados::IoCtx duplicate_io_ctx(librados::IoCtx& io_ctx) {
     delete state;
 
     delete plugin_registry;
-
-    // destroy our AsioEngine via its shared io_context to ensure that we
-    // aren't executing within an AsioEngine-owned strand
-    auto& io_context = asio_engine->get_io_context();
-    boost::asio::post(io_context, [asio_engine=std::move(asio_engine)]() {});
   }
 
   void ImageCtx::init() {