diff options
author | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | 2010-07-08 20:38:59 -0400 |
---|---|---|
committer | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | 2010-08-19 20:18:02 -0400 |
commit | 77d8485a8b5416c615b6acd95f01bfcacd7d81ff (patch) | |
tree | 725742c078b9712d875e9c633d249b6da14e5f00 /kernel/rcutree_plugin.h | |
parent | 742734eea0cf5314cde5945963ed964be167bd84 (diff) |
rcu: improve kerneldoc for rcu_read_lock(), call_rcu(), and synchronize_rcu()
Make it explicit that new RCU read-side critical sections that start
after call_rcu() and synchronize_rcu() start might still be running
after the end of the relevant grace period.
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Reviewed-by: Josh Triplett <josh@joshtriplett.org>
Diffstat (limited to 'kernel/rcutree_plugin.h')
-rw-r--r-- | kernel/rcutree_plugin.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/kernel/rcutree_plugin.h b/kernel/rcutree_plugin.h index 9906f85c7780..63bb7714fdeb 100644 --- a/kernel/rcutree_plugin.h +++ b/kernel/rcutree_plugin.h | |||
@@ -546,9 +546,11 @@ EXPORT_SYMBOL_GPL(call_rcu); | |||
546 | * | 546 | * |
547 | * Control will return to the caller some time after a full grace | 547 | * Control will return to the caller some time after a full grace |
548 | * period has elapsed, in other words after all currently executing RCU | 548 | * period has elapsed, in other words after all currently executing RCU |
549 | * read-side critical sections have completed. RCU read-side critical | 549 | * read-side critical sections have completed. Note, however, that |
550 | * sections are delimited by rcu_read_lock() and rcu_read_unlock(), | 550 | * upon return from synchronize_rcu(), the caller might well be executing |
551 | * and may be nested. | 551 | * concurrently with new RCU read-side critical sections that began while |
552 | * synchronize_rcu() was waiting. RCU read-side critical sections are | ||
553 | * delimited by rcu_read_lock() and rcu_read_unlock(), and may be nested. | ||
552 | */ | 554 | */ |
553 | void synchronize_rcu(void) | 555 | void synchronize_rcu(void) |
554 | { | 556 | { |