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.
This commit is contained in:
Willy Tarreau 2017-11-02 16:26:02 +01:00
parent f6ba17da20
commit 7c2a2ad65c

View 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.file = file;
l->info.last_location.line = line; l->info.last_location.line = line;
__RWLOCK_WRUNLOCK(&l->lock); __SPIN_UNLOCK(&l->lock);
HA_ATOMIC_ADD(&lock_stats[lbl].num_write_unlocked, 1); HA_ATOMIC_ADD(&lock_stats[lbl].num_write_unlocked, 1);
} }