Skip to content

Kernel fixes to spin_is_locked()

Paul E. McKenney linux-arch lkml 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3locking: Document the semantics of spin_is_locked()include/linux/spinlock.h+18 -00 replies
2/3arm64: Remove smp_mb() from arch_spin_is_locked()arch/arm64/include/asm/spinlock.h+0 -50 replies
3/3locking: Clean up comment and #ifndef for {,queued_}spin_is_locked()include/asm-generic/qspinlock.h include/linux/mutex.h+0 -50 replies

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by.

PatchRandy DunlapWill Deacon
1/3A-b
2/3A-b
3/3A-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 memory-model 0/3] Kernel fixes to spin_is_locked()

Hello!

This series contains fixes to the kernel related to the semantics of spin_is_locked(), all courtesy of Andrea Parri, and all ready for inclusion in -tip:

1. Document the semantics of spin_is_locked() by adding a docbook
header comment.

2. Remove smp_mb() from arch_spin_is_locked(), given that the
new order-free spin_is_locked() semantics require no such barrier.

3. Clean up comment and #ifndef for {,queued_}spin_is_locked().
The comment was "XXX think about spin_is_locked", and I can attest that we have now done some serious thinking. ;-)

Thanx, Paul

------------------------------------------------------------------------