Skip to content

Commit

Permalink
srcu: Fix bogus try_check_zero() comment
Browse files Browse the repository at this point in the history
Signed-off-by: Paul E. McKenney <[email protected]>
  • Loading branch information
paulmck committed Apr 18, 2017
1 parent e95d68d commit 91e27c3
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions kernel/rcu/srcu.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit 91e27c3

Please sign in to comment.