]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
librbd: don't close an already closed parent image upon failure 2881/head
authorJason Dillaman <dillaman@redhat.com>
Thu, 6 Nov 2014 10:01:38 +0000 (05:01 -0500)
committerJason Dillaman <dillaman@redhat.com>
Thu, 6 Nov 2014 10:01:38 +0000 (05:01 -0500)
commit61ebfebd59b61ffdc203dfeca01ee1a02315133e
treeb05521c5864da800b274badd81051f8055b66aae
parentabc995b6b4e0117b74c301abcb4faf4ea2ebef25
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>
src/librbd/internal.cc