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

osd: check do_shutdown before do_restart #6547

Merged
merged 1 commit into from Nov 15, 2015
Merged

Conversation

xiaoxichen
Copy link
Contributor

This will save extart boot message when do_shutdown && do_restart == true,
which is the case when rebind failed.

Also move the unlock/lock inside the if statement so we don't do unnecessary
lock/unlock.

Signed-off-by: Xiaoxi Chen xiaoxi.chen@intel.com

This will save extart boot message when do_shutdown && do_restart == true,
which is the case when rebind failed.

Also move the unlock/lock inside the if statement so we don't do unnecessary
lock/unlock.

Signed-off-by: Xiaoxi Chen <xiaoxi.chen@intel.com>
@tchaikov
Copy link
Contributor

lgtm. but seems we don't have any test to exercise this code path though.

@xiaoxichen
Copy link
Contributor Author

hmm....so what can we do? is that the test go over #5870 and #5846 may happen to also go though this part?

@tchaikov tchaikov added needs-qa and removed bug-fix labels Nov 13, 2015
@tchaikov
Copy link
Contributor

you are right, i'm not sure we have tests to cover those two cases either.

i manually tested the change locally. removing "bug fix" as it does not address a known issue, and adding "needs-qa" to perform the sanity tests.

liewegas added a commit that referenced this pull request Nov 15, 2015
osd: check do_shutdown before do_restart

Reviewed-by: Kefu Chai <kchai@redhat.com>
@liewegas liewegas merged commit 8dd801d into ceph:master Nov 15, 2015
@ghost ghost added the core label Feb 15, 2016
@dzafman dzafman mentioned this pull request May 10, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
5 participants