| commit | a5df688aedcb4dd1a0c08af9a49858917daa9b2e | [log] [tgz] |
|---|---|---|
| author | Paul E. McKenney <paulmck@kernel.org> | Sat Jan 04 11:33:17 2020 -0800 |
| committer | Paul E. McKenney <paulmck@kernel.org> | Sat Jan 04 11:33:17 2020 -0800 |
| tree | 9f76d9aed77327656bbf9042714939533a5ae66f | |
| parent | 63dd19f2f87e61fdfeda807f7502fbaad257ec9a [diff] |
rcu: *_ONCE() for grace-period progress indicators The various RCU structures' ->gp_seq, ->gp_seq_needed, ->gp_req_activity, and ->gp_activity fields are read locklessly, so they must be updated with WRITE_ONCE() and, when read locklessly, with READ_ONCE(). This commit makes these changes. This data race was reported by KCSAN. Not appropriate for backporting due to failure being unlikely. Signed-off-by: Paul E. McKenney <paulmck@kernel.org>