]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
librbd: parent image cache should work for all parents in hierarchy
authorJason Dillaman <dillaman@redhat.com>
Wed, 20 May 2020 20:08:36 +0000 (16:08 -0400)
committerJason Dillaman <dillaman@redhat.com>
Thu, 27 Aug 2020 17:56:04 +0000 (13:56 -0400)
commitfe496717c9cb8f8ac6fddfb8166fd33283368047
tree9e2d448873909732a0cad19493583ff54fe4bb5d
parentf66676d21ae48989a8050a6e2f73592602b195e4
librbd: parent image cache should work for all parents in hierarchy

A parent image might have its own parent image and so forth. Use the
ImageCtx::child member instead to determine if it's a R/W image.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
(cherry picked from commit 8d1c2e8d81a290a3b98b1c3b9d94f9bdabde981f)
src/librbd/cache/ParentCacheObjectDispatch.cc
src/test/librbd/cache/test_mock_ParentImageCache.cc
src/test/librbd/mock/MockImageCtx.h