Skip to content

Commit

Permalink
osd: Reset() the snaptrimmer on shutdown
Browse files Browse the repository at this point in the history
We were failing to exit various wait states which held PGRefs. Error!

Fixes: http://tracker.ceph.com/issues/19931

Signed-off-by: Greg Farnum <gfarnum@redhat.com>
(cherry picked from commit b0e9dee)

Conflicts:
	src/osd/ReplicatedPG.cc

Signed-off-by: Greg Farnum <gfarnum@redhat.com>
  • Loading branch information
gregsfortytwo committed May 26, 2017
1 parent 54bc1e1 commit 967d6a5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/osd/ReplicatedPG.cc
Original file line number Diff line number Diff line change
Expand Up @@ -10020,6 +10020,8 @@ void ReplicatedPG::on_shutdown()
cancel_flush_ops(false);
cancel_proxy_ops(false);
apply_and_flush_repops(false);
// clean up snap trim references
snap_trimmer_machine.process_event(Reset());

pgbackend->on_change();

Expand Down

0 comments on commit 967d6a5

Please sign in to comment.