commit | 85b2fb03580f60d20d20ecbda8c9b63804d8e900 | [log] [tgz] |
---|---|---|
author | Willy Tarreau <w@1wt.eu> | Wed Feb 17 16:14:00 2021 +0100 |
committer | Willy Tarreau <w@1wt.eu> | Thu Feb 18 10:06:45 2021 +0100 |
tree | f14342a38a62612921646136f669cdadd72f4e69 | |
parent | 6b96e0e9d204bb7e30222964d641cc28a0e4d0c0 [diff] |
OPTIM: lb-leastconn: do not take the server lock on take_conn/drop_conn The operations are only an insert and a delete into the LB tree, which doesn't require the server's lock at all as the lbprm lock is already held. Let's drop it. Just for the sake of cleanness, given that the served and nbpend values used to be atomically updated, we'll use an atomic load to read them.