commit | cd10def825119900cfd5d87f6a48e5282679e95a | [log] [tgz] |
---|---|---|
author | Willy Tarreau <w@1wt.eu> | Sat Oct 17 18:48:47 2020 +0200 |
committer | Willy Tarreau <w@1wt.eu> | Sat Oct 17 18:51:41 2020 +0200 |
tree | fb80dc46a5695efd3b077bd84591a1cf69a1a98b | |
parent | 9d58c9b2517dff5c44f5d5d54d0ceaa0dd119db9 [diff] |
MINOR: backend: replace the lbprm lock with an rwlock It was previously a spinlock, and it happens that a number of LB algos only lock it for lookups, without performing any modification. Let's first turn it to an rwlock and w-lock it everywhere. This is strictly identical. It was carefully checked that every HA_SPIN_LOCK() was turned to HA_RWLOCK_WRLOCK() and that HA_SPIN_UNLOCK() was turned to HA_RWLOCK_WRUNLOCK() on this lock. _INIT and _DESTROY were updated too.