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

hammer: common: ThreadPool add/remove work queue methods not thread safe #5889

Merged
1 commit merged into from Nov 4, 2015

Conversation

Abhishekvrshny
Copy link

These methods were not acquiring the ThreadPool lock when
manipulating the work_queue collection.  This was causing
occasional crashes within librbd when opening and closing
images.

Fixes: ceph#12662
Backport: hammer, firefly
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
(cherry picked from commit 3e18449)
@Abhishekvrshny Abhishekvrshny added this to the hammer milestone Sep 12, 2015
@Abhishekvrshny Abhishekvrshny assigned ghost Sep 12, 2015
ghost pushed a commit that referenced this pull request Oct 2, 2015
…t thread safe

Reviewed-by: Loic Dachary <ldachary@redhat.com>
ghost pushed a commit that referenced this pull request Oct 3, 2015
…t thread safe

Reviewed-by: Loic Dachary <ldachary@redhat.com>
ghost pushed a commit that referenced this pull request Oct 3, 2015
…t thread safe

Reviewed-by: Loic Dachary <ldachary@redhat.com>
ghost pushed a commit that referenced this pull request Oct 3, 2015
…t thread safe

Reviewed-by: Loic Dachary <ldachary@redhat.com>
ghost pushed a commit that referenced this pull request Oct 7, 2015
…t thread safe

Reviewed-by: Loic Dachary <ldachary@redhat.com>
ghost pushed a commit that referenced this pull request Oct 8, 2015
…t thread safe

Reviewed-by: Loic Dachary <ldachary@redhat.com>
@ghost
Copy link

ghost commented Nov 4, 2015

@jdurgin does this backport look good to merge ? It passed a run of the hammer rados suite ( see http://tracker.ceph.com/issues/13356#note-11 and for details ).

@jdurgin
Copy link
Member

jdurgin commented Nov 4, 2015

lgtm

ghost pushed a commit that referenced this pull request Nov 4, 2015
ThreadPool add/remove work queue methods not thread safe

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
@ghost ghost merged commit 22dce75 into ceph:hammer Nov 4, 2015
ghost pushed a commit that referenced this pull request Nov 17, 2015
ThreadPool add/remove work queue methods not thread safe

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
ghost pushed a commit that referenced this pull request Nov 17, 2015
ThreadPool add/remove work queue methods not thread safe

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
ghost pushed a commit that referenced this pull request Nov 17, 2015
ThreadPool add/remove work queue methods not thread safe

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
ghost pushed a commit that referenced this pull request Nov 17, 2015
ThreadPool add/remove work queue methods not thread safe

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
@ghost ghost changed the title ThreadPool add/remove work queue methods not thread safe hammer: common: ThreadPool add/remove work queue methods not thread safe Feb 18, 2016
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants