ImageCtx *ictx = (ImageCtx *)ctx;
tracepoint(librbd, close_image_enter, ictx, ictx->name.c_str(), ictx->id.c_str());
+ ctx = NULL; // before initiating close
r = ictx->state->close();
- ctx = NULL;
tracepoint(librbd, close_image_exit, r);
}
ImageCtx *ictx = (ImageCtx *)ctx;
tracepoint(librbd, aio_close_image_enter, ictx, ictx->name.c_str(), ictx->id.c_str(), c->pc);
+ ctx = NULL; // before initiating close
ictx->state->close(new C_AioCompletion(ictx, librbd::io::AIO_TYPE_CLOSE,
get_aio_completion(c)));
- ctx = NULL;
tracepoint(librbd, aio_close_image_exit, 0);
return 0;