Re: [PATCH 1/1] Fix: trace sched switch start/stop racy updates

From: Mathieu Desnoyers
Date: Fri Aug 16 2019 - 21:41:59 EST

----- On Aug 16, 2019, at 6:57 PM, Linus Torvalds torvalds@xxxxxxxxxxxxxxxxxxxx wrote:

> So in general, we very much expect the compiler to do sane code
> generation, and not (for example) do store tearing on normal
> word-sized things or add writes that weren't there originally etc.

My understanding of section "Store tearing"
which points at seems
to contradict your expectation at least when writing constants to a
64-bit word without a volatile access.



Mathieu Desnoyers
EfficiOS Inc.