]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
node-proxy: try to acquire lock early in reporter's loop
authorGuillaume Abrioux <gabrioux@ibm.com>
Tue, 20 Jun 2023 12:24:42 +0000 (14:24 +0200)
committerGuillaume Abrioux <gabrioux@ibm.com>
Thu, 25 Jan 2024 14:43:30 +0000 (14:43 +0000)
commit3f7384c7e1a9656dcc91fcd9e34c9095371a2a1e
tree9986c9df35fdc439aef394444cd6d1ee71add8a4
parentecbbcb432f1b4d08f4e2d011d821a30e102dd89a
node-proxy: try to acquire lock early in reporter's loop

The lock should be acquired early in this loop.

If the lock gets acquired by another call after we enter that condition *and*
before Reporter.loop() actually acquires it, it can lead to issue if during
this short amount of time the value of `data_ready` gets modified

Signed-off-by: Guillaume Abrioux <gabrioux@ibm.com>
src/cephadm/node-proxy/reporter.py