]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: poll: get rid of the now useless fd_compute_new_polled_status()
authorWilly Tarreau <w@1wt.eu>
Thu, 25 Jan 2018 16:15:18 +0000 (17:15 +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_poll.c

index 1ab345a6a47a2d6df740f159529225550023f568..22cb227578ee80b5d3c9dcd17236e0fb834004d5 100644 (file)
@@ -53,7 +53,7 @@ REGPRM2 static void _do_poll(struct poller *p, int exp)
        int status;
        int fd;
        int wait_time;
-       int updt_idx, en, eo;
+       int updt_idx, en;
        int fds, count;
        int sr, sw;
        int old_maxfd, new_maxfd, max_add_fd;
@@ -72,9 +72,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