From: Christopher Faulet Date: Tue, 14 Oct 2025 16:50:30 +0000 (+0200) Subject: WIP/MINOR: stktable: Don't check ref_cnt twice when a stksess is killed X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=354c91059c84373770d4aeb47d19ea455c0f7a17;p=thirdparty%2Fhaproxy.git WIP/MINOR: stktable: Don't check ref_cnt twice when a stksess is killed --- diff --git a/src/stick_table.c b/src/stick_table.c index 4e3526d50..cfd50193f 100644 --- a/src/stick_table.c +++ b/src/stick_table.c @@ -138,10 +138,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);