From: Jason Dillaman Date: Mon, 27 Mar 2017 14:20:24 +0000 (-0400) Subject: librbd: random unit test failures due to shut down race X-Git-Tag: v12.0.2~290^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F14166%2Fhead;p=ceph.git librbd: random unit test failures due to shut down race Fixes: http://tracker.ceph.com/issues/19389 Signed-off-by: Jason Dillaman --- diff --git a/src/librbd/image/CreateRequest.cc b/src/librbd/image/CreateRequest.cc index f9e43e79c6af..6ebfebbfd45a 100644 --- a/src/librbd/image/CreateRequest.cc +++ b/src/librbd/image/CreateRequest.cc @@ -761,6 +761,7 @@ void CreateRequest::complete(int r) { ldout(m_cct, 20) << "done." << dendl; } + m_data_io_ctx.close(); m_on_finish->complete(r); delete this; }