From: Remi Tricot-Le Breton Date: Fri, 17 Nov 2023 10:19:39 +0000 (+0100) Subject: BUG/MINOR: shctx: Remove old HA_SPIN_INIT X-Git-Tag: v2.9-dev10~39 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d5cce92a4689529a1f68ddfafd22ba8b303aaad5;p=thirdparty%2Fhaproxy.git BUG/MINOR: shctx: Remove old HA_SPIN_INIT The shctx lock was changed from a SPINLOCK to a RWLOCK in commit ed35b94 "MEDIUM: cache: Switch shctx spinlock to rwlock and restrict its scope" but a SPIN_INIT was left behind. This patch does not need to be backported. --- diff --git a/src/shctx.c b/src/shctx.c index 79248ef57b..be59053929 100644 --- a/src/shctx.c +++ b/src/shctx.c @@ -292,7 +292,6 @@ int shctx_init(struct shared_context **orig_shctx, int maxblocks, int blocksize, goto err; } - HA_SPIN_INIT(&shctx->lock); shctx->nbav = 0; LIST_INIT(&shctx->avail);