mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-13 22:25:03 +00:00
rcu: Replace smp_wmb() with smp_store_release() for stall check
This commit gets rid of the smp_wmb() in record_gp_stall_check_time() in favor of an smp_store_release(). Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
This commit is contained in:
parent
77cfc7bf24
commit
91f63ced7d
1 changed files with 2 additions and 2 deletions
|
@ -1246,9 +1246,9 @@ static void record_gp_stall_check_time(struct rcu_state *rsp)
|
|||
unsigned long j1;
|
||||
|
||||
rsp->gp_start = j;
|
||||
smp_wmb(); /* Record start time before stall time. */
|
||||
j1 = rcu_jiffies_till_stall_check();
|
||||
WRITE_ONCE(rsp->jiffies_stall, j + j1);
|
||||
/* Record ->gp_start before ->jiffies_stall. */
|
||||
smp_store_release(&rsp->jiffies_stall, j + j1); /* ^^^ */
|
||||
rsp->jiffies_resched = j + j1 / 2;
|
||||
rsp->n_force_qs_gpstart = READ_ONCE(rsp->n_force_qs);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue