diff options
author | Simon Rettberg | 2016-01-11 12:09:23 +0100 |
---|---|---|
committer | Simon Rettberg | 2016-01-11 12:09:23 +0100 |
commit | d9c2a6cf943ca08f31f61a3fada940f77e3a03d3 (patch) | |
tree | 31f627a3d52ff838b046f41516a0fbef0b58b9ee /LOCKS | |
parent | [KERNEL/CLIENT] Several minor tweaks and changes (diff) | |
download | dnbd3-d9c2a6cf943ca08f31f61a3fada940f77e3a03d3.tar.gz dnbd3-d9c2a6cf943ca08f31f61a3fada940f77e3a03d3.tar.xz dnbd3-d9c2a6cf943ca08f31f61a3fada940f77e3a03d3.zip |
[SERVER] Fix a lot of (mostly harmless) data races
Diffstat (limited to 'LOCKS')
-rw-r--r-- | LOCKS | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -16,14 +16,15 @@ integrityQueueLock remoteCloneLock | reloadLock _images_lock _images[].lock -uplink.queueLock -pendingLockProduce pendingLockConsume +pendingLockProduce +uplink.queueLock altServersLock client.sendMutex client.statsLock statisticsSentLock statisticsReceivedLock +uplink.rttLock If you need to lock multiple clients/images/... at once, lock the client with the lowest array index first. |