From: Willy Tarreau Date: Thu, 25 Jan 2018 16:15:43 +0000 (+0100) Subject: MINOR: select: get rid of the now useless fd_compute_new_polled_status() X-Git-Tag: v1.9-dev1~442 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d4daeac7f19e5a28fe95ad1108dcf115379f3a79;p=thirdparty%2Fhaproxy.git MINOR: select: get rid of the now useless fd_compute_new_polled_status() Do not call it anymore and avoid updating the fdstate. --- diff --git a/src/ev_select.c b/src/ev_select.c index 34daa09f15..db0814d6e3 100644 --- a/src/ev_select.c +++ b/src/ev_select.c @@ -46,7 +46,7 @@ REGPRM2 static void _do_poll(struct poller *p, int exp) struct timeval delta; int delta_ms; int fds; - int updt_idx, en, eo; + int updt_idx, en; char count; int readnotnull, writenotnull; int old_maxfd, new_maxfd, max_add_fd; @@ -64,9 +64,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); /* we have a single state for all threads, which is why we