]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
CLEANUP: buffers: remove unused buffer_wq_lock lock
authorWilly Tarreau <w@1wt.eu>
Sun, 28 Jun 2020 05:31:42 +0000 (07:31 +0200)
committerWilly Tarreau <w@1wt.eu>
Sun, 28 Jun 2020 08:45:34 +0000 (10:45 +0200)
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
src/buffer.c

index fb72b0a9b1ce6f41671b78ca4feaf7f5d4c1c7fa..79e64453e5434100e8684e126a042b8aafee801d 100644 (file)
@@ -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);
index 0b3b69c1a207cd4bf94e55ebd49578e20799c274..ad2cde926533faaaa5276422040d09410895f44e 100644 (file)
@@ -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()