mirror of
https://github.com/haproxy/haproxy.git
synced 2026-02-22 17:30:34 -05:00
MINOR: poll: get rid of the now useless fd_compute_new_polled_status()
Do not call it anymore and avoid updating the fdstate.
This commit is contained in:
parent
7d24fadf7c
commit
1394eb0120
1 changed files with 2 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue