From: Jason Dillaman Date: Wed, 24 Apr 2019 15:37:41 +0000 (-0400) Subject: librbd: copyup read stats were incorrectly tied to child X-Git-Tag: v15.1.0~2809^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F27757%2Fhead;p=ceph.git librbd: copyup read stats were incorrectly tied to child The parent IO stats should be updated when reading from the parent image for a copyup. Signed-off-by: Jason Dillaman --- diff --git a/src/librbd/io/CopyupRequest.cc b/src/librbd/io/CopyupRequest.cc index 2299d3bf3419..9344e5891a3c 100644 --- a/src/librbd/io/CopyupRequest.cc +++ b/src/librbd/io/CopyupRequest.cc @@ -163,7 +163,7 @@ void CopyupRequest::read_from_parent() { auto comp = AioCompletion::create_and_start< CopyupRequest, &CopyupRequest::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 << ", "