Message ID | 20231019115452.1215974-2-frederic@kernel.org (mailing list archive) |
---|---|
State | Mainlined |
Commit | 730c3ed4ba30feadfb20b4d4d18e869bc00348f6 |
Headers | show |
Series | RCU refscale update for v6.7 | expand |
diff --git a/kernel/rcu/refscale.c b/kernel/rcu/refscale.c index 91a0fd0d4d9a..750a63e99539 100644 --- a/kernel/rcu/refscale.c +++ b/kernel/rcu/refscale.c @@ -655,12 +655,12 @@ static void typesafe_delay_section(const int nloops, const int udl, const int nd goto retry; } un_delay(udl, ndl); + b = READ_ONCE(rtsp->a); // Remember, seqlock read-side release can fail. if (!rts_release(rtsp, start)) { rcu_read_unlock(); goto retry; } - b = READ_ONCE(rtsp->a); WARN_ONCE(a != b, "Re-read of ->a changed from %u to %u.\n", a, b); b = rtsp->b; rcu_read_unlock();