ceph/ceph — pull request #2239 by jdurgin (2014-08-11 23:56:02+00:00)
Title: librbd: fix error path cleanup for opening an image

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