]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
librbd: don't close an already closed parent image upon failure 3078/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:04:50 +0000 (13:04 -0500)
commit02d4685c56e129cb179a5ddfb8e87aefc2fce0b5
treedd8417edf2a11e9d35267e3f87ddb98d6f0f3bca
parentc982da44e0e9e0be3c3d4e8f5e0a186fb2fcebb3
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