mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-28 11:05:18 +07:00
726328d92a
This patch updates/fixes all spin_unlock_wait() implementations. The update is in semantics; where it previously was only a control dependency, we now upgrade to a full load-acquire to match the store-release from the spin_unlock() we waited on. This ensures that when spin_unlock_wait() returns, we're guaranteed to observe the full critical section we waited on. This fixes a number of spin_unlock_wait() users that (not unreasonably) rely on this. I also fixed a number of ticket lock versions to only wait on the current lock holder, instead of for a full unlock, as this is sufficient. Furthermore; again for ticket locks; I added an smp_rmb() in between the initial ticket load and the spin loop testing the current value because I could not convince myself the address dependency is sufficient, esp. if the loads are of different sizes. I'm more than happy to remove this smp_rmb() again if people are certain the address dependency does indeed work as expected. Note: PPC32 will be fixed independently Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Cc: Andrew Morton <akpm@linux-foundation.org> Cc: Linus Torvalds <torvalds@linux-foundation.org> Cc: Paul E. McKenney <paulmck@linux.vnet.ibm.com> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: chris@zankel.net Cc: cmetcalf@mellanox.com Cc: davem@davemloft.net Cc: dhowells@redhat.com Cc: james.hogan@imgtec.com Cc: jejb@parisc-linux.org Cc: linux@armlinux.org.uk Cc: mpe@ellerman.id.au Cc: ralf@linux-mips.org Cc: realmz6@gmail.com Cc: rkuo@codeaurora.org Cc: rth@twiddle.net Cc: schwidefsky@de.ibm.com Cc: tony.luck@intel.com Cc: vgupta@synopsys.com Cc: ysato@users.sourceforge.jp Cc: linux-kernel@vger.kernel.org Signed-off-by: Ingo Molnar <mingo@kernel.org> |
||
---|---|---|
.. | ||
agp.h | ||
asm-offsets.h | ||
asmregs.h | ||
assembly.h | ||
atomic.h | ||
bitops.h | ||
bug.h | ||
bugs.h | ||
cache.h | ||
cacheflush.h | ||
checksum.h | ||
cmpxchg.h | ||
compat_ucontext.h | ||
compat.h | ||
current.h | ||
delay.h | ||
dma-mapping.h | ||
dma.h | ||
eisa_bus.h | ||
eisa_eeprom.h | ||
elf.h | ||
fb.h | ||
fixmap.h | ||
floppy.h | ||
ftrace.h | ||
futex.h | ||
grfioctl.h | ||
hardirq.h | ||
hardware.h | ||
hugetlb.h | ||
ide.h | ||
io.h | ||
irq.h | ||
irqflags.h | ||
kbdleds.h | ||
Kbuild | ||
kmap_types.h | ||
ldcw.h | ||
led.h | ||
linkage.h | ||
machdep.h | ||
mc146818rtc.h | ||
mckinley.h | ||
mmu_context.h | ||
mmu.h | ||
mmzone.h | ||
module.h | ||
page.h | ||
parisc-device.h | ||
parport.h | ||
pci.h | ||
pdc_chassis.h | ||
pdc.h | ||
pdcpat.h | ||
perf_event.h | ||
perf.h | ||
pgalloc.h | ||
pgtable.h | ||
prefetch.h | ||
processor.h | ||
psw.h | ||
ptrace.h | ||
ropes.h | ||
rt_sigframe.h | ||
rtc.h | ||
runway.h | ||
sections.h | ||
serial.h | ||
shmparam.h | ||
signal.h | ||
smp.h | ||
socket.h | ||
special_insns.h | ||
spinlock_types.h | ||
spinlock.h | ||
string.h | ||
superio.h | ||
switch_to.h | ||
syscall.h | ||
termios.h | ||
thread_info.h | ||
timex.h | ||
tlb.h | ||
tlbflush.h | ||
traps.h | ||
uaccess.h | ||
ucontext.h | ||
unaligned.h | ||
unistd.h | ||
unwind.h |