From: Willy Tarreau Date: Thu, 2 Nov 2017 15:26:02 +0000 (+0100) Subject: BUG/MINOR: thread: fix a typo in the debug code X-Git-Tag: v1.8-rc2~11 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=7c2a2ad65c869a468802fb712de7edf993be9aba;p=thirdparty%2Fhaproxy.git 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. --- diff --git a/include/common/hathreads.h b/include/common/hathreads.h index 3524ef189c..853c9f1674 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); }