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: v14.2.2~183^2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=a324f4a19bb2c090f9fa1911a713b73fe3f056ed;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 (cherry picked from commit 9b615c30753ad35636c875696ed951e807fd694c) --- diff --git a/src/librbd/io/CopyupRequest.cc b/src/librbd/io/CopyupRequest.cc index 2299d3bf34196..9344e5891a3ca 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 << ", "