mirror of
https://github.com/ceph/ceph
synced 2025-02-21 01:47:25 +00:00
helgrind: annotate false-positive race conditions
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
This commit is contained in:
parent
2697b302bd
commit
1215a1a986
@ -20,6 +20,7 @@
|
||||
#include "librados/PoolAsyncCompletionImpl.h"
|
||||
#include "librados/RadosClient.h"
|
||||
#include "include/assert.h"
|
||||
#include "common/valgrind.h"
|
||||
|
||||
#define dout_subsys ceph_subsys_rados
|
||||
#undef dout_prefix
|
||||
@ -1159,6 +1160,8 @@ int librados::IoCtxImpl::getxattrs(const object_t& oid,
|
||||
|
||||
void librados::IoCtxImpl::set_sync_op_version(version_t ver)
|
||||
{
|
||||
ANNOTATE_BENIGN_RACE_SIZED(&last_objver, sizeof(last_objver),
|
||||
"IoCtxImpl last_objver");
|
||||
last_objver = ver;
|
||||
}
|
||||
|
||||
|
@ -84,6 +84,7 @@ Pipe::Pipe(SimpleMessenger *r, int st, PipeConnection *con)
|
||||
send_keepalive_ack(false),
|
||||
connect_seq(0), peer_global_seq(0),
|
||||
out_seq(0), in_seq(0), in_seq_acked(0) {
|
||||
ANNOTATE_BENIGN_RACE_SIZED(&sd, sizeof(sd), "Pipe socket");
|
||||
ANNOTATE_BENIGN_RACE_SIZED(&state, sizeof(state), "Pipe state");
|
||||
ANNOTATE_BENIGN_RACE_SIZED(&recv_len, sizeof(recv_len), "Pipe recv_len");
|
||||
ANNOTATE_BENIGN_RACE_SIZED(&recv_ofs, sizeof(recv_ofs), "Pipe recv_ofs");
|
||||
|
Loading…
Reference in New Issue
Block a user