From 2e7c91587d99c9eba85ab7bd407a5b722b25a81e Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Tue, 8 Jul 2014 16:11:27 -0700 Subject: [PATCH] osd: clear PGBackend state on shutdown This was leaking state on shutdown whenever there were in-flight repops that were canceled. Fixes: #7891 Signed-off-by: Sage Weil (cherry picked from commit cafceae6c243369d3616af8217884e7e029896b9) --- src/osd/ReplicatedPG.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/osd/ReplicatedPG.cc b/src/osd/ReplicatedPG.cc index c8f6da2386aa8..5a8d9bac9246c 100644 --- a/src/osd/ReplicatedPG.cc +++ b/src/osd/ReplicatedPG.cc @@ -9317,6 +9317,9 @@ void ReplicatedPG::on_shutdown() cancel_copy_ops(false); cancel_flush_ops(false); apply_and_flush_repops(false); + + pgbackend->on_change(); + context_registry_on_change(); osd->remote_reserver.cancel_reservation(info.pgid); -- 2.39.5