Re: [PATCH 1/2] xen/spinlocks: spin_trylock with interrupts off is always fine

2020-10-30 Thread Jürgen Groß
On 30.10.20 15:59, Jan Beulich wrote: On 30.10.2020 15:24, Juergen Gross wrote: Even if a spinlock was taken with interrupts on before calling spin_trylock() with interrupts off is fine, as it can't block. Add a bool parameter "try" to check_lock() for handling this case. Remove the call of ch

Re: [PATCH 1/2] xen/spinlocks: spin_trylock with interrupts off is always fine

2020-10-30 Thread Jan Beulich
On 30.10.2020 15:24, Juergen Gross wrote: > Even if a spinlock was taken with interrupts on before calling > spin_trylock() with interrupts off is fine, as it can't block. > > Add a bool parameter "try" to check_lock() for handling this case. > > Remove the call of check_lock() from _spin_is_lock

[PATCH 1/2] xen/spinlocks: spin_trylock with interrupts off is always fine

2020-10-30 Thread Juergen Gross
Even if a spinlock was taken with interrupts on before calling spin_trylock() with interrupts off is fine, as it can't block. Add a bool parameter "try" to check_lock() for handling this case. Remove the call of check_lock() from _spin_is_locked(), as it really serves no purpose and it can even l