From 590afaff4e6a040c1e67a91e7569a2622d19af05 Mon Sep 17 00:00:00 2001
From: Jason Dillaman <dillaman@redhat.com>
Date: Mon, 24 Aug 2020 13:31:17 -0400
Subject: [PATCH] librbd: drop deferred AsioEngine destruction

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 | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/src/librbd/ImageCtx.cc b/src/librbd/ImageCtx.cc
index 6c4f3f57482..8d88e03d7b7 100644
--- a/src/librbd/ImageCtx.cc
+++ b/src/librbd/ImageCtx.cc
@@ -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() {