sched: membarrier: document memory ordering scenarios
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Tue, 20 Oct 2020 13:47:15 +0000 (09:47 -0400)
committerPeter Zijlstra <peterz@infradead.org>
Thu, 29 Oct 2020 10:00:31 +0000 (11:00 +0100)
commit25595eb6aaa9fbb31330f1e0b400642694bc6574
tree87f1864d42221d3935fe0f8ff424f5b05f8c870c
parent618758ed3a4f7d790414d020b362111748ebbf9f
sched: membarrier: document memory ordering scenarios

Document membarrier ordering scenarios in membarrier.c. Thanks to Alan
Stern for refreshing my memory. Now that I have those in mind, it seems
appropriate to serialize them to comments for posterity.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lkml.kernel.org/r/20201020134715.13909-4-mathieu.desnoyers@efficios.com
kernel/sched/membarrier.c