From: Paul E. McKenney Date: Wed, 15 Mar 2017 23:34:11 +0000 (-0700) Subject: srcu: Fix bogus try_check_zero() comment X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=91e27c356c96d760f5c283f05627ed976377debb;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git srcu: Fix bogus try_check_zero() comment Signed-off-by: Paul E. McKenney --- diff --git a/kernel/rcu/srcu.c b/kernel/rcu/srcu.c index 0b511de7ca4d..1a2dc74bb625 100644 --- a/kernel/rcu/srcu.c +++ b/kernel/rcu/srcu.c @@ -260,10 +260,9 @@ static void srcu_gp_start(struct srcu_struct *sp) } /* - * @@@ Wait until all pre-existing readers complete. Such readers - * will have used the index specified by "idx". - * the caller should ensures the ->completed is not changed while checking - * and idx = (->completed & 1) ^ 1 + * Wait until all readers counted by array index idx complete, but loop + * a maximum of trycount times. The caller must ensure that ->completed + * is not changed while checking. */ static bool try_check_zero(struct srcu_struct *sp, int idx, int trycount) {