]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
crimson/osd/pg: trigger wait_for_active_blocker on replica osds when the
authorXuehan Xu <xuxuehan@qianxin.com>
Mon, 6 May 2024 08:43:32 +0000 (16:43 +0800)
committerXuehan Xu <xuxuehan@qianxin.com>
Mon, 6 May 2024 08:43:32 +0000 (16:43 +0800)
activate event is committed

This is used to unblock localized/balanced reads issued when the pg is
not active yet.

Fixes: https://tracker.ceph.com/issues/65806
Signed-off-by: Xuehan Xu <xuxuehan@qianxin.com>
src/crimson/osd/pg.h

index d705a71bb785d1f4051895cf8288779dabddf25d..0f02a0419e502d9cff97203fbac66a9dfcf862ad 100644 (file)
@@ -323,7 +323,9 @@ public:
   }
   Context *on_clean() final;
   void on_activate_committed() final {
-    // Not needed yet (will be needed for IO unblocking)
+    if (!is_primary()) {
+      wait_for_active_blocker.unblock();
+    }
   }
   void on_active_exit() final {
     // Not needed yet