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: kstore: fix a race condition in _txc_finish() #7804

Merged
merged 1 commit into from Mar 1, 2016

Conversation

jjhuo
Copy link
Contributor

@jjhuo jjhuo commented Feb 25, 2016

Among previous kstore updates changes, this {} was missed in _txc_finish() accidentally, which would cause a race condition.

{} was missed, which limits the scope of the lock_guard.
osr->qlock has to be unlocked before calling _osr_reap_done(), since _osr_reap_done
needs acquire osr->qlock in the first beginning.

Signed-off-by: Jianjian Huo <samuel.huo@gmail.com>
@liewegas liewegas changed the title os/kstore: fix a race condition in _txc_finish() osd: kstore: fix a race condition in _txc_finish() Mar 1, 2016
liewegas added a commit that referenced this pull request Mar 1, 2016
osd: kstore: fix a race condition in _txc_finish()

Reviewed-by: Sage Weil <sage@redhat.com>
@liewegas liewegas merged commit 46bd7bb into ceph:master Mar 1, 2016
@jjhuo jjhuo deleted the fixes branch March 8, 2016 21:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants