]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
librbd: hold ImageCtx::image_lock while computing config overrides
authorJason Dillaman <dillaman@redhat.com>
Mon, 27 Jul 2020 18:36:49 +0000 (14:36 -0400)
committerNathan Cutler <ncutler@suse.com>
Fri, 14 Aug 2020 21:21:25 +0000 (23:21 +0200)
commit652952f2d74df907637f03eff542a56e02a1ec8c
tree62cf6c1575c59810c9a2064e110eab978d2cf393
parent35adebe94e8b0a17e7b56379a8bf24e5f7b8ced4
librbd: hold ImageCtx::image_lock while computing config overrides

The 'ImageCtx::apply_metadata' is guaranteed to be thread-safe but
a future commit will attempt to utilize the cached config override
set.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
(cherry picked from commit c7104d18e190f3718ec1625376f8c63676096efa)
src/librbd/ImageCtx.cc