Revert "MEDIUM: queue: use a dedicated lock for the queues"
authorWilly Tarreau <w@1wt.eu>
Thu, 24 Jun 2021 05:26:28 +0000 (07:26 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 24 Jun 2021 05:26:28 +0000 (07:26 +0200)
commit3f70fb9ea2d8bdcc6f6fa8190b604f3637349bc7
tree7ddd77afe5305679d83fb7f959e6ad26c363528a
parentccd85a3e08fdd260e15c1dd8380543a1e47d5c9f
Revert "MEDIUM: queue: use a dedicated lock for the queues"

This reverts commit fcb8bf8650ec6b5614d1b88db54f1200ebd96cbd.

The recent changes since 5304669e1 MEDIUM: queue: make
pendconn_process_next_strm() only return the pendconn opened a tiny race
condition between stream_free() and process_srv_queue(), as the pendconn
is accessed outside of the lock, possibly while it's being freed. A
different approach is required.
include/haproxy/queue-t.h
include/haproxy/thread.h
src/proxy.c
src/queue.c
src/server.c