linux/arch/mips
Waiman Long d8d0da4eee locking/arch: Move qrwlock.h include after qspinlock.h
include/asm-generic/qrwlock.h was trying to get arch_spin_is_locked via
asm-generic/qspinlock.h.  However, this does not work because architectures
might be using queued rwlocks but not queued spinlocks (csky), or because they
might be defining their own queued_* macros before including asm/qspinlock.h.

To fix this, ensure that asm/spinlock.h always includes qrwlock.h after
defining arch_spin_is_locked (either directly for csky, or via
asm/qspinlock.h for other architectures).  The only inclusion elsewhere
is in kernel/locking/qrwlock.c.  That one is really unnecessary because
the file is only compiled in SMP configurations (config QUEUED_RWLOCKS
depends on SMP) and in that case linux/spinlock.h already includes
asm/qrwlock.h if needed, via asm/spinlock.h.

Reported-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Waiman Long <longman@redhat.com>
Fixes: 26128cb6c7 ("locking/rwlocks: Add contention detection for rwlocks")
Tested-by: Guenter Roeck <linux@roeck-us.net>
Reviewed-by: Ben Gardon <bgardon@google.com>
[Add arch/sparc and kernel/locking parts per discussion with Waiman. - Paolo]
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2021-02-11 07:59:54 -05:00
..
alchemy MIPS: Alchemy: Fix memleak in alchemy_clk_setup_cpu 2020-11-17 12:53:57 +01:00
ar7
ath25
ath79
bcm47xx MIPS: BCM47XX: fix kconfig dependency bug for BCM47XX_BCMA 2020-11-12 23:21:55 +01:00
bcm63xx
bmips
boot MIPS: DTS: img: Fix schema warnings for pwm-leds 2020-12-05 11:24:29 +01:00
cavium-octeon MIPS updates for v5.11: 2020-12-16 12:07:54 -08:00
cobalt
configs MIPS updates for v5.11: 2020-12-16 12:07:54 -08:00
crypto
dec
fw
generic MIPS: mscc: Add serval support 2020-11-12 23:35:15 +01:00
include locking/arch: Move qrwlock.h include after qspinlock.h 2021-02-11 07:59:54 -05:00
ingenic
jazz
kernel epoll: fix compat syscall wire up of epoll_pwait2 2020-12-20 10:01:38 -08:00
kvm MIPS: kvm: Use vm_get_page_prot to get protection bits 2020-11-19 13:26:53 +01:00
lantiq
lib mips: lib: uncached: fix non-standard usage of variable 'sp' 2020-12-14 16:03:11 +01:00
loongson2ef
loongson32
loongson64 MIPS: Loongson64: Fix up reserving kernel memory range 2020-11-27 10:56:26 +01:00
math-emu
mm MIPS updates for v5.11: 2020-12-16 12:07:54 -08:00
mti-malta
net
netlogic
oprofile
pci mips: Vr41xx: add missing iounmap() on error in vr41xx_pciu_init() 2020-11-06 11:35:46 +01:00
pic32
pistachio
power
ralink
rb532
sgi-ip22
sgi-ip27
sgi-ip30
sgi-ip32
sibyte
sni
tools
txx9
vdso mm: forbid splitting special mappings 2020-12-15 12:13:41 -08:00
vr41xx
Kbuild
Kbuild.platforms
Kconfig MIPS updates for v5.11: 2020-12-16 12:07:54 -08:00
Kconfig.debug
Makefile mips: boot: add support for self-extracting FIT images (vmlinuz.itb) 2020-11-12 23:47:22 +01:00
Makefile.postlink