vcl: favor wr to vls_mt_spool_rwlock 83/43483/3
authorFlorin Coras <[email protected]>
Sat, 26 Jul 2025 22:35:11 +0000 (18:35 -0400)
committerDave Barach <[email protected]>
Tue, 29 Jul 2025 20:48:17 +0000 (20:48 +0000)
commitf2f1a11678d819d97c7c94af33217ab194a4d59b
treee66a4cb0cd9cb36d1ba3100d7cccd4bfeefbc724
parent68e50d8dc7d80642b107a9acf18441f7905a137f
vcl: favor wr to vls_mt_spool_rwlock

Type: improvement

In a multi-thread single worker app, there can be contention between
many readers and the writers. The writers, which can be close operations
that potentially influence the app logic, could be starved if the
numbers of readers is significant.

To avoid this, always favor writers. Might require fine tuning in the
future.

Change-Id: I5ef529195a31114bb95e19e5880247f58d454370
Signed-off-by: Florin Coras <[email protected]>
src/vcl/vcl_locked.c