summaryrefslogtreecommitdiffstats
path: root/LOCKS
diff options
context:
space:
mode:
authorSimon Rettberg2015-05-12 17:10:55 +0200
committerSimon Rettberg2015-05-12 17:10:55 +0200
commit45ce73bfda632ed276ec988b4aed137418126348 (patch)
tree505caa7b7c4a8e23ea91f2b020683d53aaffe2f0 /LOCKS
parent[SERVER] Fix dependency checks for dnbd3-server (diff)
downloaddnbd3-45ce73bfda632ed276ec988b4aed137418126348.tar.gz
dnbd3-45ce73bfda632ed276ec988b4aed137418126348.tar.xz
dnbd3-45ce73bfda632ed276ec988b4aed137418126348.zip
[SERVER] Reload images in another thread when triggered by signal
The server used to reload all images on the main thread, which is also responsible for accepting connections. While reloading the list, no new connections were accepted, which lead to clients marking the server as bad during their RTT measurements, then switching away from it.
Diffstat (limited to 'LOCKS')
-rw-r--r--LOCKS2
1 files changed, 1 insertions, 1 deletions
diff --git a/LOCKS b/LOCKS
index e23f4c5..ea1cb45 100644
--- a/LOCKS
+++ b/LOCKS
@@ -13,7 +13,7 @@ have to be aquired if you must hold multiple locks:
_clients_lock
_clients[].lock
integrityQueueLock
-remoteCloneLock
+remoteCloneLock | reloadLock
_images_lock
_images[].lock
uplink.queueLock