summaryrefslogtreecommitdiffstats
path: root/LOCKS
diff options
context:
space:
mode:
authorSimon Rettberg2016-01-11 12:09:23 +0100
committerSimon Rettberg2016-01-11 12:09:23 +0100
commitd9c2a6cf943ca08f31f61a3fada940f77e3a03d3 (patch)
tree31f627a3d52ff838b046f41516a0fbef0b58b9ee /LOCKS
parent[KERNEL/CLIENT] Several minor tweaks and changes (diff)
downloaddnbd3-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--LOCKS5
1 files changed, 3 insertions, 2 deletions
diff --git a/LOCKS b/LOCKS
index f2e64dd..a28e42a 100644
--- a/LOCKS
+++ b/LOCKS
@@ -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.