Commit 91e27c35 authored by Paul E. McKenney's avatar Paul E. McKenney

srcu: Fix bogus try_check_zero() comment

Signed-off-by: default avatarPaul E. McKenney <paulmck@linux.vnet.ibm.com>
parent e95d68d2
...@@ -260,10 +260,9 @@ static void srcu_gp_start(struct srcu_struct *sp) ...@@ -260,10 +260,9 @@ static void srcu_gp_start(struct srcu_struct *sp)
} }
/* /*
* @@@ Wait until all pre-existing readers complete. Such readers * Wait until all readers counted by array index idx complete, but loop
* will have used the index specified by "idx". * a maximum of trycount times. The caller must ensure that ->completed
* the caller should ensures the ->completed is not changed while checking * is not changed while checking.
* and idx = (->completed & 1) ^ 1
*/ */
static bool try_check_zero(struct srcu_struct *sp, int idx, int trycount) static bool try_check_zero(struct srcu_struct *sp, int idx, int trycount)
{ {
......
Markdown is supported
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