librbd: random unit test failures due to shut down race

Fixes: http://tracker.ceph.com/issues/19389
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
This commit is contained in:
Jason Dillaman 2017-03-27 10:20:24 -04:00
parent a965e0276b
commit f3984f00de

View File

@ -761,6 +761,7 @@ void CreateRequest<I>::complete(int r) {
ldout(m_cct, 20) << "done." << dendl;
}
m_data_io_ctx.close();
m_on_finish->complete(r);
delete this;
}