From 0807ebacc15df042597cfee34ca3079f301050f8 Mon Sep 17 00:00:00 2001 From: Christopher Faulet Date: Tue, 14 Oct 2025 18:50:30 +0200 Subject: [PATCH] WIP/MINOR: stktable: Don't check ref_cnt twice when a stksess is killed --- src/stick_table.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/stick_table.c b/src/stick_table.c index 5e2d33b68..23c959eef 100644 --- a/src/stick_table.c +++ b/src/stick_table.c @@ -136,10 +136,6 @@ int __stksess_kill(struct stktable *t, struct stksess *ts) /* make sure we're no longer in the updates list */ MT_LIST_DELETE(&ts->pend_updts); - /* ... and that nobody added us in between */ - if (HA_ATOMIC_LOAD(&ts->ref_cnt)) - return 0; - /* ... and that we didn't leave the update list for the tree */ if (MT_LIST_INLIST(&ts->upd)) { link = mt_list_lock_full(&ts->upd);