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

librbd: fix error path cleanup for opening an image #2239

Merged
merged 1 commit into from Aug 12, 2014
Merged

Conversation

jdurgin
Copy link
Member

@jdurgin jdurgin commented Aug 11, 2014

If the image doesn't exist and caching is enabled, the ObjectCacher was not
being shutdown, and the ImageCtx was leaked. The IoCtx could later be closed
while the ObjectCacher was still running, resulting in a segfault. Simply use
the usual cleanup path in open_image(), which works fine here.

Fixes: #8912
Backport: dumpling, firefly
Signed-off-by: Josh Durgin josh.durgin@inktank.com

If the image doesn't exist and caching is enabled, the ObjectCacher
was not being shutdown, and the ImageCtx was leaked. The IoCtx could
later be closed while the ObjectCacher was still running, resulting in
a segfault. Simply use the usual cleanup path in open_image(), which
works fine here.

Fixes: #8912
Backport: dumpling, firefly
Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
liewegas pushed a commit that referenced this pull request Aug 12, 2014
librbd: fix error path cleanup for opening an image

Reviewed-by: Sage Weil <sage@redhat.com>
@liewegas liewegas merged commit afa176e into next Aug 12, 2014
@liewegas liewegas deleted the wip-8912 branch August 12, 2014 19:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants