Skip to content

Commit 2389c32

Browse files
committed
crimson/osd/pg: trigger wait_for_active_blocker on replica osds when the
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 <[email protected]>
1 parent 1602143 commit 2389c32

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/crimson/osd/pg.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,9 @@ class PG : public boost::intrusive_ref_counter<
323323
}
324324
Context *on_clean() final;
325325
void on_activate_committed() final {
326-
// Not needed yet (will be needed for IO unblocking)
326+
if (!is_primary()) {
327+
wait_for_active_blocker.unblock();
328+
}
327329
}
328330
void on_active_exit() final {
329331
// Not needed yet

0 commit comments

Comments
 (0)