CLEANUP: pools: remove now unused seq and pool_free_list
authorWilly Tarreau <w@1wt.eu>
Thu, 10 Jun 2021 06:46:28 +0000 (08:46 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 17 Jun 2021 16:02:23 +0000 (18:02 +0200)
These ones were only used by the lockless implementation and are not
needed anymore.

(cherry picked from commit 1526ffe815ef6136eaabb9d1c188fe7e636f2062)
Signed-off-by: Willy Tarreau <w@1wt.eu>
(cherry picked from commit 47245188ace9165555dda4c8712527367de96c2c)
Signed-off-by: Willy Tarreau <w@1wt.eu>

include/haproxy/pool-t.h

index 0da942e..a1bf07f 100644 (file)
@@ -91,16 +91,8 @@ struct pool_cache_item {
        struct list by_lru;  /* link to objects by LRU order */
 };
 
-struct pool_free_list {
-       void **free_list;
-       uintptr_t seq;
-};
-
 struct pool_head {
        void **free_list;
-#ifdef CONFIG_HAP_LOCKLESS_POOLS
-       uintptr_t seq;
-#endif
        __decl_thread(HA_SPINLOCK_T lock); /* the spin lock */
        unsigned int used;      /* how many chunks are currently in use */
        unsigned int needed_avg;/* floating indicator between used and allocated */
@@ -111,6 +103,7 @@ struct pool_head {
        unsigned int flags;     /* MEM_F_* */
        unsigned int users;     /* number of pools sharing this zone */
        unsigned int failed;    /* failed allocations */
+       /* 32-bit hole here */
        struct list list;       /* list of all known pools */
        char name[12];          /* name of the pool */
 } __attribute__((aligned(64)));