diff options
author | sr | 2013-07-13 16:10:41 +0200 |
---|---|---|
committer | sr | 2013-07-13 16:10:41 +0200 |
commit | 2812390f334cb593ef28c465f5ac273fcb4a0cc5 (patch) | |
tree | e00e0bb9c9c8460e4a3c65ec463f4c610c3c6af3 /LOCKS | |
parent | Rewrite still in progres.... (diff) | |
download | dnbd3-2812390f334cb593ef28c465f5ac273fcb4a0cc5.tar.gz dnbd3-2812390f334cb593ef28c465f5ac273fcb4a0cc5.tar.xz dnbd3-2812390f334cb593ef28c465f5ac273fcb4a0cc5.zip |
Rewriting.....
Diffstat (limited to 'LOCKS')
-rw-r--r-- | LOCKS | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |