]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
librbd: hold ImageCtx::md_lock while computing config overrides
authorJason Dillaman <dillaman@redhat.com>
Mon, 27 Jul 2020 18:36:49 +0000 (14:36 -0400)
committerJason Dillaman <dillaman@redhat.com>
Wed, 19 Aug 2020 20:22:08 +0000 (16:22 -0400)
commit903bccf1bbf0268450df26247870dbea38188440
tree6674d9e8a82c8468f76b09d6b8b0a1f5800ece08
parent0422aa48045e76957778c03d45f183635cf14b0d
librbd: hold ImageCtx::md_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)
(cherry picked from commit 652952f2d74df907637f03eff542a56e02a1ec8c)

Conflicts:
src/librbd/ImageCtx.cc: image_lock -> md_lock
src/librbd/ImageCtx.cc