Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mds: don't double-shutdown the timer when suiciding #7616

Merged
merged 1 commit into from Feb 16, 2016

Conversation

gregsfortytwo
Copy link
Member

Fixes: #14697

Signed-off-by: Greg Farnum gfarnum@redhat.com

Fixes: ceph#14697

Signed-off-by: Greg Farnum <gfarnum@redhat.com>
@gregsfortytwo gregsfortytwo added bug-fix cephfs Ceph File System labels Feb 11, 2016
gregsfortytwo added a commit that referenced this pull request Feb 12, 2016
@@ -1101,6 +1099,7 @@ void MDSDaemon::suicide()
if (objecter->initialized.read()) {
objecter->shutdown();
}
timer.shutdown();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In the MDSRank case, we shutdown timer before objecter. However, looking at the things we call back from the timer, I don't think any of them do IO, so this should be safe too.

@jcsp
Copy link
Contributor

jcsp commented Feb 12, 2016

LGTM

@gregsfortytwo
Copy link
Member Author

gregsfortytwo added a commit that referenced this pull request Feb 16, 2016
mds: don't double-shutdown the timer when suiciding

Reviewed-by: John Spray <john.spray@redhat.com>
@gregsfortytwo gregsfortytwo merged commit 42afb5b into ceph:master Feb 16, 2016
@gregsfortytwo gregsfortytwo deleted the wip-timer-14697 branch February 16, 2016 04:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants