Commit bb3b9cf1 authored by Paul E. McKenney's avatar Paul E. McKenney Committed by Linus Torvalds

[PATCH] Fix comment to synchronize_sched()

Fix to broken comment to synchronize_rcu() noted by Keith Owens.  Also add
sentence noting that synchronize_sched() and synchronize_rcu() are not
necessarily identical.
Signed-off-by: default avatarPaul E. McKenney <paulmck@us.ibm.com>
Cc: Keith Owens <kaos@sgi.com>
Cc: Stephen Hemminger <shemminger@osdl.org>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 9d9c0531
...@@ -240,11 +240,14 @@ extern int rcu_pending(int cpu); ...@@ -240,11 +240,14 @@ extern int rcu_pending(int cpu);
* This means that all preempt_disable code sequences, including NMI and * This means that all preempt_disable code sequences, including NMI and
* hardware-interrupt handlers, in progress on entry will have completed * hardware-interrupt handlers, in progress on entry will have completed
* before this primitive returns. However, this does not guarantee that * before this primitive returns. However, this does not guarantee that
* softirq handlers will have completed, since in some kernels * softirq handlers will have completed, since in some kernels, these
* handlers can run in process context, and can block.
* *
* This primitive provides the guarantees made by the (deprecated) * This primitive provides the guarantees made by the (deprecated)
* synchronize_kernel() API. In contrast, synchronize_rcu() only * synchronize_kernel() API. In contrast, synchronize_rcu() only
* guarantees that rcu_read_lock() sections will have completed. * guarantees that rcu_read_lock() sections will have completed.
* In "classic RCU", these two guarantees happen to be one and
* the same, but can differ in realtime RCU implementations.
*/ */
#define synchronize_sched() synchronize_rcu() #define synchronize_sched() synchronize_rcu()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment