MEDIUM: poller: use atomic ops to update the fdtab mask
We don't need to lock the fdtab[].lock anymore since we only have one
modification left (update update_mask). Let's use an atomic AND instead.
diff --git a/src/ev_select.c b/src/ev_select.c
index db0814d..6e83467 100644
--- a/src/ev_select.c
+++ b/src/ev_select.c
@@ -62,10 +62,8 @@
continue;
}
- HA_SPIN_LOCK(FD_LOCK, &fdtab[fd].lock);
- fdtab[fd].update_mask &= ~tid_bit;
en = fdtab[fd].state;
- HA_SPIN_UNLOCK(FD_LOCK, &fdtab[fd].lock);
+ HA_ATOMIC_AND(&fdtab[fd].update_mask, ~tid_bit);
/* we have a single state for all threads, which is why we
* don't check the tid_bit. First thread to see the update