From 7c2a2ad65c869a468802fb712de7edf993be9aba Mon Sep 17 00:00:00 2001 From: Willy Tarreau Date: Thu, 2 Nov 2017 16:26:02 +0100 Subject: [PATCH] BUG/MINOR: thread: fix a typo in the debug code __spin_unlock() used to call RWLOCK_WRUNLOCK() to unlock in the debug code. It's harmless as they happen to be identical. --- include/common/hathreads.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/common/hathreads.h b/include/common/hathreads.h index 3524ef189..853c9f167 100644 --- a/include/common/hathreads.h +++ b/include/common/hathreads.h @@ -542,7 +542,7 @@ static inline void __spin_unlock(enum lock_label lbl, struct ha_spinlock *l, l->info.last_location.file = file; l->info.last_location.line = line; - __RWLOCK_WRUNLOCK(&l->lock); + __SPIN_UNLOCK(&l->lock); HA_ATOMIC_ADD(&lock_stats[lbl].num_write_unlocked, 1); }