]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
common/HeartbeatMap: use relaxed order
authorKefu Chai <kchai@redhat.com>
Sat, 1 Aug 2020 15:38:15 +0000 (23:38 +0800)
committerKefu Chai <kchai@redhat.com>
Tue, 4 Aug 2020 03:20:49 +0000 (11:20 +0800)
commitd3db045ddc59549855ac66e60a2e320fa1f8a818
tree6034dbde5dbbd8f280828c4156afbe8e0497ecc7
parentc11594a479ca24e790acf8e764e3759c4c661110
common/HeartbeatMap: use relaxed order

use memory_order_relaxed instead of memory_order_seq_cst, as the
ordering of storing of `timeout` and `suicide_timeout` does not matter,
and we don't need to synchorinize the cache for the consistent memory
view of local core. what we need is but the atomic read/write operation
of these individual variables.

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/common/HeartbeatMap.cc