MINOR: fd: remove the unneeded last CAS when adding an fd to the list
This was a leftover from the initial code where two threads could fight
for the list's tail.
diff --git a/src/fd.c b/src/fd.c
index 04ac335..06fd690 100644
--- a/src/fd.c
+++ b/src/fd.c
@@ -233,12 +233,7 @@
} while (1);
}
/* Then, update the last entry */
-redo_fd_cache:
- last = list->last;
- __ha_barrier_load();
-
- if (unlikely(!HA_ATOMIC_CAS(&list->last, &last, fd)))
- goto redo_fd_cache;
+ list->last = fd;
__ha_barrier_store();
fdtab[fd].cache.next = -1;
__ha_barrier_store();