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); }