seqlock: provide the same ordering semantics as mainline
[ Upstream commit afa4c06b89a3c0fb7784ff900ccd707bef519cb7 ]
The mainline implementation of read_seqbegin() orders prior loads w.r.t.
the read-side critical section. Fixup the RT writer-boosting
implementation to provide the same guarantee.
Also, while we're here, update the usage of ACCESS_ONCE() to use
READ_ONCE().
Fixes: e69f15cf77c23 ("seqlock: Prevent rt starvation")
Cc: stable-rt@vger.kernel.org
Signed-off-by:
Julia Cartwright <julia@ni.com>
Signed-off-by:
Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by:
Steven Rostedt (VMware) <rostedt@goodmis.org>
Loading
Please sign in to comment