On Sat, 17 Aug 2019 11:53:41 -0400 (EDT) Mathieu Desnoyers <mathieu.desnoy...@efficios.com> wrote:
> kernel/trace/trace.c:tracing_record_taskinfo_sched_switch() > kernel/trace/trace.c:tracing_record_taskinfo() > > where @flags is used to control a few branches. I don't think any of those > would end up causing corruption if the flags is re-fetched between two > branches, but it seems rather fragile. There shouldn't be any corruption, as each flag test is not dependent on any of the other tests. But I do agree, a READ_ONCE() would be appropriate for just making a consistent state among the tests, even though they are independent. -- Steve