Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 6faf7283 authored by Paul E. McKenney's avatar Paul E. McKenney
Browse files

rcu: Fix comparison sense in rcu_needs_cpu()



Commit c0f4dfd4 (rcu: Make RCU_FAST_NO_HZ take advantage of numbered
callbacks) introduced a bug that can result in excessively long grace
periods.  This bug reverse the senes of the "if" statement checking
for lazy callbacks, so that RCU takes a lazy approach when there are
in fact non-lazy callbacks.  This can result in excessive boot, suspend,
and resume times.

This commit therefore fixes the sense of this "if" statement.

Reported-by: default avatarBorislav Petkov <bp@alien8.de>
Reported-by: default avatarBjørn Mork <bjorn@mork.no>
Reported-by: default avatarJoerg Roedel <joro@8bytes.org>
Signed-off-by: default avatarPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Tested-by: default avatarBjørn Mork <bjorn@mork.no>
Tested-by: default avatarJoerg Roedel <joro@8bytes.org>
parent f722406f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment