public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v3 tip/core/locking 0/3] Memory-barrier documentation updates
@ 2013-11-22 19:26 Paul E. McKenney
  2013-11-22 19:27 ` [PATCH v3 RFC tip/core/locking 1/3] Documentation/memory-barriers.txt: Add needed ACCESS_ONCE() calls to memory-barriers.txt Paul E. McKenney
  2013-11-23  4:00 ` [PATCH v3 tip/core/locking 0/3] Memory-barrier documentation updates Josh Triplett
  0 siblings, 2 replies; 4+ messages in thread
From: Paul E. McKenney @ 2013-11-22 19:26 UTC (permalink / raw)
  To: linux-kernel
  Cc: mingo, laijs, dipankar, akpm, mathieu.desnoyers, josh, niv, tglx,
	peterz, rostedt, dhowells, edumazet, darren, fweisbec, sbw

Hello!

This series applies some long-needed updates to memory-barriers.txt:

1.	Add ACCESS_ONCE() calls where needed to ensure their inclusion
	in code copy-and-pasted from this file.

2.	Add long atomic examples alongside the existing atomics.

3.	Prohibit architectures supporting the Linux kernel from
	speculating stores.

Changes from v2:

o	Update examples so that that load against which the subsequent
	store is to be ordered is part of the "if" condition.

o	Add an example showing how the compiler can remove "if"
	conditions and how to prevent it from doing so.

o	Add ACCESS_ONCE() to the compiler-barrier section.

o	Add a sentence noting that transitivity requires smp_mb().

Changes from v1:

o	Combined with Peter Zijlstra's speculative-store-prohibition patch.

o	Added more pitfalls to avoid when prohibiting speculative
	stores, along with how to avoid them.

o	Applied Josh Triplett's review comments.

							Thanx, Paul


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2013-11-23  4:00 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-11-22 19:26 [PATCH v3 tip/core/locking 0/3] Memory-barrier documentation updates Paul E. McKenney
2013-11-22 19:27 ` [PATCH v3 RFC tip/core/locking 1/3] Documentation/memory-barriers.txt: Add needed ACCESS_ONCE() calls to memory-barriers.txt Paul E. McKenney
2013-11-22 19:27   ` [PATCH v3 RFC tip/core/locking 2/3] Documentation/memory-barriers.txt: Add long atomic examples " Paul E. McKenney
2013-11-23  4:00 ` [PATCH v3 tip/core/locking 0/3] Memory-barrier documentation updates Josh Triplett

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox