]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
librbd: don't close an already closed parent image upon failure 3077/head
authorJason Dillaman <dillaman@redhat.com>
Thu, 6 Nov 2014 10:01:38 +0000 (05:01 -0500)
committerJason Dillaman <dillaman@redhat.com>
Tue, 2 Dec 2014 18:03:44 +0000 (13:03 -0500)
commit3ff94ed73ff27af2c8ea215ab693d815e285a27f
tree620a7cebece00aa09ab1becdd2e80ae727e943a4
parentaac794616580ed0bb00608c5867199b12d4e1d94
librbd: don't close an already closed parent image upon failure

If librbd is not able to open a child's parent image, it will
incorrectly close the parent image twice, resulting in a crash.

Fixes: #10030
Backport: firefly, giant
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
(cherry picked from commit 61ebfebd59b61ffdc203dfeca01ee1a02315133e)
src/librbd/internal.cc