]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
librbd: copyup read stats were incorrectly tied to child 28132/head
authorJason Dillaman <dillaman@redhat.com>
Wed, 24 Apr 2019 15:37:41 +0000 (11:37 -0400)
committerJason Dillaman <dillaman@redhat.com>
Wed, 15 May 2019 20:06:23 +0000 (16:06 -0400)
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)

src/librbd/io/CopyupRequest.cc

index 2299d3bf341961bac7ac2f6344d0d7414d0776d7..9344e5891a3ca13fcf89ab345c38ba30bb4ed943 100644 (file)
@@ -163,7 +163,7 @@ void CopyupRequest<I>::read_from_parent() {
   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 << ", "