WIP/MINOR: stktable: Don't check ref_cnt twice when a stksess is killed

This commit is contained in:
Christopher Faulet 2025-10-14 18:50:30 +02:00
parent cd16d89ff5
commit 354c91059c

View File

@ -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);