Re: [Qemu-devel] [PATCH v2 7/9] util/qht: atomically set b->hashes

2016-09-27 Thread Alex Bennée
Emilio G. Cota writes: > On Thu, Sep 22, 2016 at 11:13:14 +0100, Alex Bennée wrote: >> ThreadSanitizer detects a possible race between reading/writing the >> hashes. As ordering semantics are already documented for qht we just >> need to ensure a race can't tear the hash value so we can use the

Re: [Qemu-devel] [PATCH v2 7/9] util/qht: atomically set b->hashes

2016-09-27 Thread Emilio G. Cota
On Thu, Sep 22, 2016 at 11:13:14 +0100, Alex Bennée wrote: > ThreadSanitizer detects a possible race between reading/writing the > hashes. As ordering semantics are already documented for qht we just > need to ensure a race can't tear the hash value so we can use the > relaxed atomic_set/read funct

[Qemu-devel] [PATCH v2 7/9] util/qht: atomically set b->hashes

2016-09-22 Thread Alex Bennée
ThreadSanitizer detects a possible race between reading/writing the hashes. As ordering semantics are already documented for qht we just need to ensure a race can't tear the hash value so we can use the relaxed atomic_set/read functions. Signed-off-by: Alex Bennée --- util/qht.c | 10 +-