Merge pull request #29263 from trociny/wip-rbd-external_callback

librbd: don't use complete_external_callback if ImageCtx destroyed

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
This commit is contained in:
Jason Dillaman 2019-07-24 11:11:22 -04:00 committed by GitHub
commit ed6a047c71
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -95,6 +95,7 @@ void AioCompletion::complete() {
// must destroy ImageCtx prior to invoking callback
delete ictx;
ictx = nullptr;
external_callback = false;
}
state = AIO_STATE_CALLBACK;