Messages in this thread | | | Date | Fri, 14 Feb 2020 17:23:09 +0100 | From | Frederic Weisbecker <> | Subject | Re: [PATCH] sched/vtime: Prevent unstable evaluation of WARN(vtime->state) |
| |
On Thu, Jan 23, 2020 at 07:08:49PM +0100, Frederic Weisbecker wrote: > From: Chris Wilson <chris@chris-wilson.co.uk> > > As the vtime is sampled under loose seqcount protection by kcpustat, the > vtime fields may change as the code flows. Where logic dictates a field > has a static value, use a READ_ONCE. > > Fixes: 74722bb223d0 ("sched/vtime: Bring up complete kcpustat accessor") > Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> > Cc: Peter Zijlstra <peterz@infradead.org> > Cc: Ingo Molnar <mingo@kernel.org> > Signed-off-by: Frederic Weisbecker <frederic@kernel.org>
Ping?
| |