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 Latest7 patches 18 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7locking: 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/7locking: Introduce smp_acquire__after_ctrl_depinclude/linux/compiler.h ipc/sem.c+14 -170 replies
3/7locking: Move smp_cond_load_acquire() to asm-generic/barrier.hinclude/asm-generic/barrier.h include/linux/compiler.h+39 -370 replies
4/7locking, tile: Provide TILE specific smp_acquire__after_ctrl_deparch/tile/include/asm/barrier.h+7 -00 replies
5/7locking, arch: Update spin_unlock_wait()arch/alpha/include/asm/spinlock.h arch/arc/include/asm/spinlock.h arch/arm/include/asm/spinlock.h +19 more+154 -3618 replies
6/7locking: Update spin_unlock_wait usersipc/sem.c kernel/exit.c kernel/task_work.c+6 -40 replies
7/7locking,netfilter: Fix nf_conntrack_lock()net/netfilter/nf_conntrack_core.c+17 -10 replies

Reviews trailers per patch

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

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

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 -v4 0/7] spin_unlock_wait borkage and assorted bits

Similar to -v3 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 is the removal of cmpwait() and a reorder of patches.

I'm planning on queuing these patches for 4.8.