We don't need to call stktable_requeue_exp() with the table's lock
held anymore, so let's move it out. It should slightly reduce the
contention on the write lock, though it is now already quite low.
ts = ts2;
}
- stktable_requeue_exp(table, ts);
HA_ATOMIC_INC(&ts->ref_cnt);
HA_RWLOCK_WRUNLOCK(STK_TABLE_LOCK, &table->lock);
+ stktable_requeue_exp(table, ts);
return ts;
}
/* now we're write-locked */
__stktable_store(table, ts);
- stktable_requeue_exp(table, ts);
HA_RWLOCK_WRUNLOCK(STK_TABLE_LOCK, &table->lock);
+
+ stktable_requeue_exp(table, ts);
return ts;
}