From cb69c3bdec4d65c6a95b7b9ff1fb8ec01a52763c Mon Sep 17 00:00:00 2001 From: Christopher Faulet Date: Tue, 14 Oct 2025 18:50:30 +0200 Subject: [PATCH] MINOR: stktable: Don't check ref_cnt twice when a stksess is killed No reason to check the sticky session ref counter twice before locking the update list. --- src/stick_table.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/stick_table.c b/src/stick_table.c index 2094e474d..013d77ef6 100644 --- a/src/stick_table.c +++ b/src/stick_table.c @@ -138,9 +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 */ if (LIST_INLIST(&ts->upd)) { -- 2.47.3