| commit | 132f7defc2f9795898cec7aa545dfe9aead08503 | [log] [tgz] |
|---|---|---|
| author | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | Thu Jan 19 13:33:17 2017 -0800 |
| committer | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | Thu Jan 19 13:33:17 2017 -0800 |
| tree | 3a263d9f269be14770f58f20ce63fd289ce5dc5d | |
| parent | 2536c24704c36375f0bcd25bed0c94a72bfc81dc [diff] |
srcu: Consolidate batch checking into rcu_all_batches_empty() The srcu_reschedule() function invokes rcu_batch_empty() on each of the four rcu_batch structures in the srcu_struct in question twice. Given that this check will also be needed in cleanup_srcu_struct(), this commit consolidates these four checks into a new rcu_all_batches_empty() function. Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>