]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
common/config: hold lock while accessing mutable container 30345/head
authorJason Dillaman <dillaman@redhat.com>
Thu, 22 Aug 2019 00:20:10 +0000 (20:20 -0400)
committerJason Dillaman <dillaman@redhat.com>
Tue, 1 Oct 2019 13:32:19 +0000 (09:32 -0400)
commit9d9b4297357e0edd43fd0bdafa9fbbe63d8e7529
tree0cbcf95d9fe1e3ad7b3d8eec34a310d1e7a648ff
parent92fcc33c4311f8e0e8dd7661052e0b70ecbae10e
common/config: hold lock while accessing mutable container

The 'call_gate_leave' method was accessing the 'obs_call_gate' map
without holding the required lock. This data structure could be
manipulated by another thread underneath the observer callback
thread context.

Fixes: https://tracker.ceph.com/issues/41354
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
(cherry picked from commit 0cc2dd7bd1021dd8b5e22850495ce97da7d98716)

Conflicts:
src/common/config_proxy.h: logic incorporated into config.cc
src/common/config.cc