// vim: ts=8 sw=2 smarttab
#include "librbd/io/AsyncOperation.h"
-#include "librbd/ImageCtx.h"
-#include "common/dout.h"
-#include "common/WorkQueue.h"
#include "include/ceph_assert.h"
+#include "common/dout.h"
+#include "librbd/AsioEngine.h"
+#include "librbd/ImageCtx.h"
#define dout_subsys ceph_subsys_rbd
#undef dout_prefix
if (!m_flush_contexts.empty()) {
C_CompleteFlushes *ctx = new C_CompleteFlushes(m_image_ctx,
std::move(m_flush_contexts));
- m_image_ctx->op_work_queue->queue(ctx);
+ m_image_ctx->asio_engine->post(ctx, 0);
}
}
}
}
- m_image_ctx->op_work_queue->queue(on_finish);
+ m_image_ctx->asio_engine->post(on_finish, 0);
}
} // namespace io