From 0cb8629ab685075bb78587b5a119e490f0e5f73e Mon Sep 17 00:00:00 2001 From: Vitaliy Filippov Date: Thu, 8 May 2025 16:14:35 +0300 Subject: [PATCH] Remove finish_stop_pg shortcut --- src/osd/osd_peering.cpp | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/osd/osd_peering.cpp b/src/osd/osd_peering.cpp index e70fc6f0..7d041353 100644 --- a/src/osd/osd_peering.cpp +++ b/src/osd/osd_peering.cpp @@ -478,11 +478,6 @@ bool osd_t::stop_pg(pg_t & pg) return false; } drop_dirty_pg_connections({ .pool_id = pg.pool_id, .pg_num = pg.pg_num }); - if (!(pg.state & (PG_ACTIVE | PG_REPEERING))) - { - finish_stop_pg(pg); - return true; - } pg.state = pg.state & ~PG_ACTIVE & ~PG_REPEERING | PG_STOPPING; if (pg.inflight == 0 && !pg.flush_batch) {