commit | 39f91504a03a7a2abdb52205106942fa4a548d0d | [log] [tgz] |
---|---|---|
author | Paul E. McKenney <paulmck@kernel.org> | Sun Dec 22 19:39:35 2019 -0800 |
committer | Paul E. McKenney <paulmck@kernel.org> | Thu Feb 20 16:01:11 2020 -0800 |
tree | 21148b0b3bd1e4c676a50e9414e5a919fd85350c | |
parent | 8c9e0cb32315835825ea1ad725a858a2d2ce4a8e [diff] |
srcu: Fix process_srcu()/srcu_batches_completed() datarace The srcu_struct structure's ->srcu_idx field is accessed locklessly, so reads must use READ_ONCE(). This commit therefore adds the needed READ_ONCE() invocation where it was missed. 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>