瀏覽代碼

srcu: Fix bogus try_check_zero() comment

Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Paul E. McKenney 8 年之前
父節點
當前提交
91e27c356c
共有 1 個文件被更改,包括 3 次插入4 次删除
  1. 3 4
      kernel/rcu/srcu.c

+ 3 - 4
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)
 static bool try_check_zero(struct srcu_struct *sp, int idx, int trycount)
 {
 {