The parent IO stats should be updated when reading from the parent
image for a copyup.
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
(cherry picked from commit
9b615c30753ad35636c875696ed951e807fd694c)
auto comp = AioCompletion::create_and_start<
CopyupRequest<I>,
&CopyupRequest<I>::handle_read_from_parent>(
- this, util::get_image_ctx(m_image_ctx), AIO_TYPE_READ);
+ this, util::get_image_ctx(m_image_ctx->parent), AIO_TYPE_READ);
ldout(cct, 20) << "oid=" << m_oid << ", "
<< "completion=" << comp << ", "