From: Willy Tarreau Date: Sun, 28 Jun 2020 05:31:42 +0000 (+0200) Subject: CLEANUP: buffers: remove unused buffer_wq_lock lock X-Git-Tag: v2.2-dev12~70 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=4dc6c860b4520eaf9fb3f780488107b7011d2387;p=thirdparty%2Fhaproxy.git 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. --- diff --git a/include/haproxy/dynbuf.h b/include/haproxy/dynbuf.h index fb72b0a9b1..79e64453e5 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 0b3b69c1a2..ad2cde9265 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()