From: Sage Weil Date: Tue, 8 Jul 2014 23:11:27 +0000 (-0700) Subject: osd: clear PGBackend state on shutdown X-Git-Tag: v0.80.5~3 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=2e7c91587d99c9eba85ab7bd407a5b722b25a81e;p=ceph.git 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) --- 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);