]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
librbd: try to preserve object map for diff-iterate in fast-diff mode
authorIlya Dryomov <idryomov@gmail.com>
Sat, 6 Jan 2024 16:08:04 +0000 (17:08 +0100)
committerIlya Dryomov <idryomov@gmail.com>
Sat, 20 Jan 2024 15:06:54 +0000 (16:06 +0100)
commit89b0d9e7b40a5f962094428e613315d3697d261f
tree97cbc3df869ca4bad9874d66b47323c7bf8fc21e
parent0c4bb58c900efa2356ea8526d3432b2922787afa
librbd: try to preserve object map for diff-iterate in fast-diff mode

As an optimization, try to ensure that the object map for the end
version is preloaded through the acquisition of exclusive lock and
as a consequence remains around until exclusive lock is released.
If it's not around, DiffRequest would (re)load it on each call.

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
src/librbd/ImageCtx.h
src/librbd/api/DiffIterate.cc
src/test/librbd/test_librbd.cc