On 14/05/16 06:34, Emilio G. Cota wrote: > +static inline int qemu_spin_trylock(QemuSpin *spin) > +{ > + if (atomic_test_and_set_acquire(&spin->value)) { > + return -EBUSY;
Seems this should be: return EBUSY; > + } > + return 0; > +}
On 14/05/16 06:34, Emilio G. Cota wrote: > +static inline int qemu_spin_trylock(QemuSpin *spin) > +{ > + if (atomic_test_and_set_acquire(&spin->value)) { > + return -EBUSY;
Seems this should be: return EBUSY; > + } > + return 0; > +}