]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUG/MINOR: thread: fix a typo in the debug code
authorWilly Tarreau <w@1wt.eu>
Thu, 2 Nov 2017 15:26:02 +0000 (16:26 +0100)
committerWilly Tarreau <w@1wt.eu>
Thu, 2 Nov 2017 15:26:02 +0000 (16:26 +0100)
__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

index 3524ef189c7b5ff31857ab76f9a2f6f2d33c43e2..853c9f16749c7b51060f3f80fa44048b95ea674c 100644 (file)
@@ -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);
 }