diff options
author | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | 2014-11-23 20:30:06 -0800 |
---|---|---|
committer | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | 2015-01-06 11:04:26 -0800 |
commit | a5c198f4f7da6cc48116ca239c59c9f44b753364 (patch) | |
tree | a60e0e2ec6158f785f79c5fe55306c11d10ddd0d /kernel/rcu | |
parent | 734d16801349fbe951d2f780191d32c5b8a892d1 (diff) | |
download | blackbird-op-linux-a5c198f4f7da6cc48116ca239c59c9f44b753364.tar.gz blackbird-op-linux-a5c198f4f7da6cc48116ca239c59c9f44b753364.zip |
rcu: Expand SRCU ->completed to 64 bits
When rcutorture used only the low-order 32 bits of the grace-period
number, it was not a problem for SRCU to use a 32-bit completed field.
However, rcutorture now uses the full 64 bits on 64-bit systems, so
this commit converts SRCU's ->completed field to unsigned long so as to
provide 64 bits on 64-bit systems.
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Diffstat (limited to 'kernel/rcu')
-rw-r--r-- | kernel/rcu/srcu.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/rcu/srcu.c b/kernel/rcu/srcu.c index e037f3eb2f7b..445bf8ffe3fb 100644 --- a/kernel/rcu/srcu.c +++ b/kernel/rcu/srcu.c @@ -546,7 +546,7 @@ EXPORT_SYMBOL_GPL(srcu_barrier); * Report the number of batches, correlated with, but not necessarily * precisely the same as, the number of grace periods that have elapsed. */ -long srcu_batches_completed(struct srcu_struct *sp) +unsigned long srcu_batches_completed(struct srcu_struct *sp) { return sp->completed; } |