mirror of
https://github.com/haproxy/haproxy.git
synced 2026-04-05 00:59:16 -04:00
MINOR: servers: Call process_srv_queue() without lock when possible
In server_warmup(), call process_srv_queue() only once we released the server lock, as we don't need it.
This commit is contained in:
parent
a8f50cff7e
commit
b65df062be
1 changed files with 2 additions and 1 deletions
|
|
@ -5918,10 +5918,11 @@ static struct task *server_warmup(struct task *t, void *context, unsigned int st
|
|||
/* recalculate the weights and update the state */
|
||||
server_recalc_eweight(s, 1);
|
||||
|
||||
HA_SPIN_UNLOCK(SERVER_LOCK, &s->lock);
|
||||
|
||||
/* probably that we can refill this server with a bit more connections */
|
||||
process_srv_queue(s);
|
||||
|
||||
HA_SPIN_UNLOCK(SERVER_LOCK, &s->lock);
|
||||
|
||||
/* get back there in 1 second or 1/20th of the slowstart interval,
|
||||
* whichever is greater, resulting in small 5% steps.
|
||||
|
|
|
|||
Loading…
Reference in a new issue