]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/librbd/io/ImageRequestWQ.cc
import ceph 14.2.5
[ceph.git] / ceph / src / librbd / io / ImageRequestWQ.cc
index 32584640d7ddb8e879aa8d76445f53773484a95c..34f2c2cf2bae49d060d963386d124d48b5b32496 100644 (file)
@@ -844,6 +844,15 @@ int ImageRequestWQ<I>::start_in_flight_io(AioCompletion *c) {
     return false;
   }
 
+  if (!m_image_ctx.data_ctx.is_valid()) {
+    CephContext *cct = m_image_ctx.cct;
+    lderr(cct) << "missing data pool" << dendl;
+
+    c->get();
+    c->fail(-ENODEV);
+    return false;
+  }
+
   m_in_flight_ios++;
   return true;
 }