Skip to content

spin_unlock_wait borkage and assorted bits

Peter Zijlstra lkml netfilter-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest8 patches 15 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/8locking: Replace smp_cond_acquire with smp_cond_load_acquireinclude/linux/compiler.h kernel/locking/qspinlock.c kernel/sched/core.c +2 more+31 -180 replies
2/8locking: Introduce cmpwait()include/linux/compiler.h+18 -10 replies
3/8locking: Introduce smp_acquire__after_ctrl_depinclude/linux/compiler.h ipc/sem.c+15 -173 replies
4/8locking, arch: Update spin_unlock_wait()arch/alpha/include/asm/spinlock.h arch/arc/include/asm/spinlock.h arch/arm/include/asm/spinlock.h +18 more+121 -352 replies
5/8locking: Update spin_unlock_wait usersipc/sem.c kernel/exit.c kernel/task_work.c+6 -40 replies
6/8locking,netfilter: Fix nf_conntrack_lock()net/netfilter/nf_conntrack_core.c+17 -10 replies
7/8locking: Move smp_cond_load_acquire() and friends into asm-generic/barrier.harch/alpha/include/asm/spinlock.h arch/arm/include/asm/spinlock.h arch/blackfin/include/asm/spinlock.h +16 more+90 -569 replies
8/8locking, tile: Provide TILE specific smp_acquire__after_ctrl_deparch/tile/include/asm/barrier.h+7 -01 reply

Reviews trailers per patch

1 of 8 patches has a Reviewed-by or Acked-by.

PatchWill DeaconChris Metcalf
1/8Requested-by
2/8
3/8
4/8
5/8
6/8
7/8
8/8A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH -v3 0/8] spin_unlock_wait borkage and assorted bits

Similar to -v2 in that it rewrites spin_unlock_wait() for all.

The new spin_unlock_wait() provides ACQUIRE semantics to match the RELEASE of the spin_unlock() we waited for and thereby ensure we can fully observe its critical section.

This fixes a number (pretty much all) spin_unlock_wait() users.

This series pulls in the smp_cond_acquire() rewrite because it introduces a lot of new users of it. All simple spin_unlock_wait() implementations end up being one.

New in this series; apart from the fixes from the last posting (s390,tile), is that it moves smp_cond_load_acquire() and friends into asm-generic/barrier.h such that architectures that explicitly do not do load speculation (tile) can override smp_acquire__after_ctrl_dep().

I'm planning on queuing these patches for 4.8.