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)
  • Loading branch information
gregsfortytwo committed Jul 18, 2017
1 parent cc0046a commit 2d5cafd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/osd/PrimaryLogPG.cc
Expand Up @@ -10136,6 +10136,8 @@ void PrimaryLogPG::on_shutdown()
cancel_proxy_ops(false);
apply_and_flush_repops(false);
cancel_log_updates();
// clean up snap trim references
snap_trimmer_machine.process_event(Reset());

pgbackend->on_change();

Expand Down

0 comments on commit 2d5cafd

Please sign in to comment.