]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUG/MINOR: shctx: Remove old HA_SPIN_INIT
authorRemi Tricot-Le Breton <rlebreton@haproxy.com>
Fri, 17 Nov 2023 10:19:39 +0000 (11:19 +0100)
committerWilliam Lallemand <wlallemand@haproxy.com>
Fri, 17 Nov 2023 15:56:18 +0000 (16:56 +0100)
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.

src/shctx.c

index 79248ef57bf84c3cf2d0a9e21ac6f7cfbc7aac53..be590539299dc7e387ffc93517ccf6b2d4264b99 100644 (file)
@@ -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);