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: move Finisher to unlocked shutdown #10142

Merged
merged 1 commit into from
Jul 14, 2016
Merged

mds: move Finisher to unlocked shutdown #10142

merged 1 commit into from
Jul 14, 2016

Conversation

batrick
Copy link
Member

@batrick batrick commented Jul 5, 2016

This commit resolves a deadlock reported in i16042 where the thread calling
MDSRankDispatcher::shutdown would hold the mds_lock while asynchronous
callbacks in the Finisher would attempt to lock mds_lock.

For simplicity, I merged the finisher stop with the messenger shutdown as both
need the mds_lock dropped.

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

Signed-off-by: Patrick Donnelly pdonnell@redhat.com

This commit resolves a deadlock reported in i16042 where the thread calling
MDSRankDispatcher::shutdown would hold the mds_lock while asynchronous
callbacks in the Finisher would attempt to lock mds_lock.

For simplicity, I merged the finisher stop with the messenger shutdown as both
need the mds_lock dropped.

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

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
@xiaoxichen
Copy link
Contributor

Manually tested in my env, looks good

@jcsp jcsp merged commit 4b7a5cb into ceph:master Jul 14, 2016
@batrick batrick deleted the i16042 branch July 14, 2016 13:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants