]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MEDIUM: checks: Make sure we return the tasklet from srv_chk_io_cb
authorOlivier Houchard <cognet@ci0.org>
Fri, 25 Apr 2025 10:59:37 +0000 (12:59 +0200)
committerOlivier Houchard <cognet@ci0.org>
Fri, 25 Apr 2025 14:14:26 +0000 (16:14 +0200)
In srv_chk_io_cb, return the tasklet to tell the scheduler the tasklet
is still alive, it is not yet needed, but will be soon.

src/check.c

index 4ebf8d9379d490803dae18563a44148f386ebed8..4473e008fac8c1a571a72640e63c41e556d58fef 100644 (file)
@@ -1105,7 +1105,7 @@ struct task *srv_chk_io_cb(struct task *t, void *ctx, unsigned int state)
        struct stconn *sc = ctx;
 
        wake_srv_chk(sc);
-       return NULL;
+       return t;
 }
 
 /* returns <0, 0, >0 if check thread 1 is respectively less loaded than,