From 9b615c30753ad35636c875696ed951e807fd694c Mon Sep 17 00:00:00 2001 From: Jason Dillaman Date: Wed, 24 Apr 2019 11:37:41 -0400 Subject: [PATCH] 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 --- src/librbd/io/CopyupRequest.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 << ", " -- 2.47.3