Re: [PATCH] locking: remove spin_lock_flags() etc

From
Arnd Bergmann <arnd@kernel.org>
Date
2021-10-25 15:44:47
Also in
linux-s390, lkml
Reply to
Waiman Long, 2021-10-25
On Mon, Oct 25, 2021 at 5:28 PM Waiman Long [off-list ref] wrote:
On 10/25/21 9:06 AM, Arnd Bergmann wrote:
quoted
On s390, we pick between the cmpxchg() based directed-yield when
running on virtualized CPUs, and a normal qspinlock when running on a
dedicated CPU.
I am not aware that s390 is using qspinlocks at all as I don't see
ARCH_USE_QUEUED_SPINLOCKS being set anywhere under arch/s390. I only see
that it uses a cmpxchg based spinlock.
Sorry, I should not have said "normal" here. See arch/s390/lib/spinlock.c
for their custom queued spinlocks as implemented in arch_spin_lock_queued().
I don't know if that code actually does the same thing as the generic qspinlock,
but it seems at least similar.

       Arnd
Thread (12 messages) 12 messages, 5 authors, last reply 2021-10-27
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help