ke/turnstile: make turnstiles more finely locked

Add a per-turnstile lock which is now held across propagation, instead of a
per-chain lock. This should hopefully
avoid scalability problems if many different turnstiles point to the same
bucket.
This commit is contained in:
Loïc Grégoire
2026-09-20 01:15:06 -04:00
parent 8013e84d9f
commit 021e213fb2
5 changed files with 140 additions and 102 deletions
+1
View File
@@ -15,6 +15,7 @@ fn turnstile_ctor(ts: *kep.turnstile.Turnstile) void {
.queues = undefined,
.waiters = 0,
.owners = .none,
.lock = .init(),
};
ts.reset();
}