]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: kqueue: get rid of the now useless fd_compute_new_polled_status()
authorWilly Tarreau <w@1wt.eu>
Thu, 25 Jan 2018 13:57:25 +0000 (14:57 +0100)
committerWilly Tarreau <w@1wt.eu>
Mon, 5 Feb 2018 15:02:22 +0000 (16:02 +0100)
Do not call it anymore and avoid updating the fdstate.

src/ev_kqueue.c

index 6169e63ceaed2aa1ccaf89d86df5ccf6a2668b64..fcd04fda90a9af451de6028fe5ba8d652daca066 100644 (file)
@@ -40,7 +40,7 @@ REGPRM2 static void _do_poll(struct poller *p, int exp)
        int status;
        int count, fd, delta_ms;
        struct timespec timeout;
-       int updt_idx, en, eo;
+       int updt_idx, en;
        int changes = 0;
 
        /* first, scan the update list to find changes */
@@ -54,9 +54,7 @@ REGPRM2 static void _do_poll(struct poller *p, int exp)
 
                HA_SPIN_LOCK(FD_LOCK, &fdtab[fd].lock);
                fdtab[fd].update_mask &= ~tid_bit;
-               eo = fdtab[fd].state;
-               en = fd_compute_new_polled_status(eo);
-               fdtab[fd].state = en;
+               en = fdtab[fd].state;
                HA_SPIN_UNLOCK(FD_LOCK, &fdtab[fd].lock);
 
                if (!(fdtab[fd].thread_mask & tid_bit) || !(en & FD_EV_POLLED_RW)) {