]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
osd: clear PGBackend state on shutdown
authorSage Weil <sage@inktank.com>
Tue, 8 Jul 2014 23:11:27 +0000 (16:11 -0700)
committerSage Weil <sage@redhat.com>
Wed, 23 Jul 2014 22:04:33 +0000 (15:04 -0700)
This was leaking state on shutdown whenever there were in-flight repops
that were canceled.

Fixes: #7891
Signed-off-by: Sage Weil <sage@inktank.com>
(cherry picked from commit cafceae6c243369d3616af8217884e7e029896b9)

src/osd/ReplicatedPG.cc

index c8f6da2386aa8e80384a657fe57631132b40073a..5a8d9bac9246c0ab926953af9a14b7f1db1ee64e 100644 (file)
@@ -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);