]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MAJOR: queue/threads: make pendconn_redistribute not lock the server
authorWilly Tarreau <w@1wt.eu>
Tue, 21 Aug 2018 16:11:03 +0000 (18:11 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 21 Aug 2018 16:11:03 +0000 (18:11 +0200)
commitdeca26c452cdc3ab2a4446eaadd5606192306764
tree06dcaad8dba46fa82f69e3338adc865dab10f71a
parent80c56790d984eadbe26115202c1e9a4bb4a0c7fa
BUG/MAJOR: queue/threads: make pendconn_redistribute not lock the server

Since commit 3ff577e ("MAJOR: server: make server state changes
synchronous again"), srv_update_status() is called with the server
lock held. It calls (among others) pendconn_redistribute() which used
to take this lock, causing CPU loops by default, or crashes if build
with -DDEBUG_THREAD. Since this function is not called from any other
place anymore, it doesn't require the lock on its own so let's simply
drop it from there.

No backport is needed, this is 1.9-specific.
src/queue.c