mirror of
https://github.com/ceph/ceph
synced 2025-02-21 18:17:42 +00:00
Merge pull request #23639 from trociny/wip-24910
librbd: potential race on image create request complete Reviewed-by: Jason Dillaman <dillaman@redhat.com>
This commit is contained in:
commit
33bc68caf4
@ -737,8 +737,9 @@ void CreateRequest<I>::complete(int r) {
|
||||
}
|
||||
|
||||
m_data_io_ctx.close();
|
||||
m_on_finish->complete(r);
|
||||
auto on_finish = m_on_finish;
|
||||
delete this;
|
||||
on_finish->complete(r);
|
||||
}
|
||||
|
||||
// cleanup
|
||||
|
Loading…
Reference in New Issue
Block a user