From 10d58618e7c632ef01b9537492239e0a042dc17e Mon Sep 17 00:00:00 2001 From: Mykola Golub Date: Tue, 23 May 2017 12:07:45 +0200 Subject: [PATCH] librbd: potential read IO hang when image is flattened Fixes: http://tracker.ceph.com/issues/19832 Signed-off-by: Jason Dillaman --- src/librbd/io/ObjectRequest.cc | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/librbd/io/ObjectRequest.cc b/src/librbd/io/ObjectRequest.cc index 1cdb696b7171..2f28f738bd65 100644 --- a/src/librbd/io/ObjectRequest.cc +++ b/src/librbd/io/ObjectRequest.cc @@ -217,8 +217,6 @@ bool ObjectReadRequest::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; } -- 2.47.3