commit | 8c9e0cb32315835825ea1ad725a858a2d2ce4a8e | [log] [tgz] |
---|---|---|
author | Paul E. McKenney <paulmck@kernel.org> | Sun Dec 22 19:36:33 2019 -0800 |
committer | Paul E. McKenney <paulmck@kernel.org> | Thu Feb 20 16:01:11 2020 -0800 |
tree | 288fea8145ada762e4ae66a9b8df71448f04095d | |
parent | 7ff8b4502bc0f576450d4ecbda97fa30e8002ed1 [diff] |
srcu: Fix __call_srcu()/srcu_get_delay() datarace The srcu_struct structure's ->srcu_gp_seq_needed_exp field is accessed locklessly, so updates must use WRITE_ONCE(). This commit therefore adds the needed WRITE_ONCE() invocations. 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>