mirror of
https://github.com/haproxy/haproxy.git
synced 2026-06-08 16:23:24 -04:00
MINOR: cli/server: don't take thread isolation to check for srv-removable
Thanks to the previous commits, we now know that "wait srv-removable" does not require thread isolation, as long as3372a2ea00("BUG/MEDIUM: queues: Stricly respect maxconn for outgoing connections") andc880c32b16("MINOR: stream: decrement srv->served after detaching from the list") are present. Let's just get rid of thread_isolate() here, which can consume a lot of CPU on highly threaded machines when removing many servers at once.
This commit is contained in:
parent
aad8e74cb9
commit
6336b636f7
1 changed files with 0 additions and 2 deletions
|
|
@ -2127,9 +2127,7 @@ static int cli_io_handler_wait(struct appctx *appctx)
|
|||
|
||||
if (ctx->cond == CLI_WAIT_COND_SRV_UNUSED) {
|
||||
/* check if the server in args[0]/args[1] can be released now */
|
||||
thread_isolate();
|
||||
ret = srv_check_for_deletion(ctx->args[0], ctx->args[1], NULL, NULL, NULL);
|
||||
thread_release();
|
||||
|
||||
if (ret < 0) {
|
||||
/* unrecoverable failure */
|
||||
|
|
|
|||
Loading…
Reference in a new issue