From: Jason Dillaman Date: Mon, 24 Aug 2020 17:31:17 +0000 (-0400) Subject: librbd: drop deferred AsioEngine destruction X-Git-Tag: v16.1.0~1327^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F36774%2Fhead;p=ceph.git 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 --- diff --git a/src/librbd/ImageCtx.cc b/src/librbd/ImageCtx.cc index 6c4f3f574826..8d88e03d7b73 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() {