Skip to content

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

Merged
liewegas merged 1 commit into
nextfrom
wip-8912
Aug 12, 2014
Merged

liewegas merged 1 commit into
nextfrom
wip-8912

Conversation

@jdurgin

@jdurgin jdurgin commented Aug 11, 2014

Copy link
Copy Markdown
Member

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 [email protected]

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 <[email protected]>
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 <[email protected]>
@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

Development

Successfully merging this pull request may close these issues.

2 participants