From 4dc6c860b4520eaf9fb3f780488107b7011d2387 Mon Sep 17 00:00:00 2001 From: Willy Tarreau Date: Sun, 28 Jun 2020 07:31:42 +0200 Subject: [PATCH] CLEANUP: buffers: remove unused buffer_wq_lock lock Commit 2104659 ("MEDIUM: buffer: remove the buffer_wq lock") removed usage of the lock but not the lock itself. It's totally unused, let's remove it. --- include/haproxy/dynbuf.h | 1 - src/buffer.c | 1 - 2 files changed, 2 deletions(-) diff --git a/include/haproxy/dynbuf.h b/include/haproxy/dynbuf.h index fb72b0a9b..79e64453e 100644 --- a/include/haproxy/dynbuf.h +++ b/include/haproxy/dynbuf.h @@ -36,7 +36,6 @@ extern struct pool_head *pool_head_buffer; extern struct mt_list buffer_wq; -__decl_thread(extern HA_SPINLOCK_T buffer_wq_lock); int init_buffer(); void buffer_dump(FILE *o, struct buffer *b, int from, int to); diff --git a/src/buffer.c b/src/buffer.c index 0b3b69c1a..ad2cde926 100644 --- a/src/buffer.c +++ b/src/buffer.c @@ -24,7 +24,6 @@ struct pool_head *pool_head_buffer; /* list of objects waiting for at least one buffer */ struct mt_list buffer_wq = LIST_HEAD_INIT(buffer_wq); -__decl_aligned_spinlock(buffer_wq_lock); /* perform minimal intializations, report 0 in case of error, 1 if OK. */ int init_buffer()