]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
librbd: do not share crypto image layers with ancestors
authorOr Ozeri <oro@il.ibm.com>
Sun, 24 Jan 2021 07:32:44 +0000 (09:32 +0200)
committerJason Dillaman <dillaman@redhat.com>
Tue, 26 Jan 2021 14:52:07 +0000 (09:52 -0500)
commit233beadaeca4736c5cb5b517f2460db31599010a
tree79cd385407d0487c5c7c8ca2b8d95b29154d3a4c
parentd5410b4b7ca39b681b49343bf1101ecb11b3f945
librbd: do not share crypto image layers with ancestors

This commit creates a unique crypto image dispatch per image,
instead of sharing a single object with all ancestors.
This should fix a seg-fault caused when closing an encrypted cloned image.

Signed-off-by: Or Ozeri <oro@il.ibm.com>
(cherry picked from commit 35c1dfe40917e714ea07377b9f20fd9cb80eebee)
src/librbd/crypto/LoadRequest.cc