> static inline int __ticket_spin_is_locked(arch_spinlock_t *lock) > { > - int tmp = ACCESS_ONCE(lock->slock); > + struct __raw_tickets tmp = ACCESS_ONCE(lock->tickets); > > - return !!(((tmp >> TICKET_SHIFT) ^ tmp) & ((1 << TICKET_SHIFT) - 1)); > + return !!(tmp.tail ^ tmp.head); Does it make sense to mask it here it here with TICKET_MASK as it was done before? _______________________________________________ Virtualization mailing list Virtualization@xxxxxxxxxxxxxxxxxxxxxxxxxx https://lists.linux-foundation.org/mailman/listinfo/virtualization