Thanks to the previous commits, we now know that "wait srv-removable"
does not require thread isolation, as long as
3372a2ea00 ("BUG/MEDIUM:
queues: Stricly respect maxconn for outgoing connections") and
c880c32b16
("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.
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 */