From: Willy Tarreau Date: Sun, 5 Nov 2017 09:06:32 +0000 (+0100) Subject: BUG/MAJOR: threads/checks: wrong use of SPIN_LOCK instead of SPIN_UNLOCK X-Git-Tag: v1.8-rc3~69 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=73247e0757eaf98cf1ae847f2675087b14efa088;p=thirdparty%2Fhaproxy.git BUG/MAJOR: threads/checks: wrong use of SPIN_LOCK instead of SPIN_UNLOCK Must unlock on exit, copy-paste error. --- diff --git a/src/checks.c b/src/checks.c index 3c2eeb6397..222704a99d 100644 --- a/src/checks.c +++ b/src/checks.c @@ -2091,7 +2091,7 @@ static struct task *process_chk_proc(struct task *t) reschedule: while (tick_is_expired(t->expire, now_ms)) t->expire = tick_add(t->expire, MS_TO_TICKS(check->inter)); - SPIN_LOCK(SERVER_LOCK, &check->server->lock); + SPIN_UNLOCK(SERVER_LOCK, &check->server->lock); return t; }