From: Mykola Golub Date: Tue, 23 May 2017 10:07:45 +0000 (+0200) Subject: librbd: potential read IO hang when image is flattened X-Git-Tag: v11.2.1~51^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=ac706f2b4a4aee7b813a0b5ba0589431b84f3dcd;p=ceph.git librbd: potential read IO hang when image is flattened Fixes: http://tracker.ceph.com/issues/19832 Signed-off-by: Jason Dillaman (cherry picked from commit 10d58618e7c632ef01b9537492239e0a042dc17e) --- diff --git a/src/librbd/AioObjectRequest.cc b/src/librbd/AioObjectRequest.cc index 1b466efe52c..910f9a122b6 100644 --- a/src/librbd/AioObjectRequest.cc +++ b/src/librbd/AioObjectRequest.cc @@ -187,8 +187,6 @@ bool AioObjectRead::should_complete(int r) RWLock::RLocker parent_locker(image_ctx->parent_lock); if (image_ctx->parent == NULL) { ldout(image_ctx->cct, 20) << "parent is gone; do nothing" << dendl; - m_state = LIBRBD_AIO_READ_FLAT; - finished = false; break; }