Commit 8a77f38b authored by Frederic Weisbecker's avatar Frederic Weisbecker
Browse files

srcu: Only accelerate on enqueue time



Acceleration in SRCU happens on enqueue time for each new callback. This
operation is expected not to fail and therefore any similar attempt
from other places shouldn't find any remaining callbacks to accelerate.

Moreover accelerations performed beyond enqueue time are error prone
because rcu_seq_snap() then may return the snapshot for a new grace
period that is not going to be started.

Remove these dangerous and needless accelerations and introduce instead
assertions reporting leaking unaccelerated callbacks beyond enqueue
time.

Co-developed-by: default avatarYong He <alexyonghe@tencent.com>
Signed-off-by: default avatarYong He <alexyonghe@tencent.com>
Co-developed-by: default avatarJoel Fernandes (Google) <joel@joelfernandes.org>
Signed-off-by: default avatarJoel Fernandes (Google) <joel@joelfernandes.org>
Co-developed-by: default avatarNeeraj upadhyay <Neeraj.Upadhyay@amd.com>
Signed-off-by: default avatarNeeraj upadhyay <Neeraj.Upadhyay@amd.com>
Reviewed-by: default avatarLike Xu <likexu@tencent.com>
Signed-off-by: default avatarFrederic Weisbecker <frederic@kernel.org>
parent 4a8e65b0
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment