summaryrefslogtreecommitdiffstats
path: root/LOCKS
diff options
context:
space:
mode:
authorsr2013-07-13 16:10:41 +0200
committersr2013-07-13 16:10:41 +0200
commit2812390f334cb593ef28c465f5ac273fcb4a0cc5 (patch)
treee00e0bb9c9c8460e4a3c65ec463f4c610c3c6af3 /LOCKS
parentRewrite still in progres.... (diff)
downloaddnbd3-2812390f334cb593ef28c465f5ac273fcb4a0cc5.tar.gz
dnbd3-2812390f334cb593ef28c465f5ac273fcb4a0cc5.tar.xz
dnbd3-2812390f334cb593ef28c465f5ac273fcb4a0cc5.zip
Rewriting.....
Diffstat (limited to 'LOCKS')
-rw-r--r--LOCKS4
1 files changed, 2 insertions, 2 deletions
diff --git a/LOCKS b/LOCKS
index d6085c5..61ce937 100644
--- a/LOCKS
+++ b/LOCKS
@@ -27,8 +27,8 @@ For example, if you hold the lock for client 10 and
you need to look up some other client. You MUST NOT
simply fetch the _clients_lock now and then iterate
over the clients until you find the one you need,
-as it violates the above order to first lock on a
-client and then the clients lock.
+as it violates the above order to first lock on the
+clients array and then the clients lock.
Instead, you need to release client 10's lock,
then lock on _clients_lock and iterate over the
clients. Now you check if you either encounter