Skip to content

Commit a75f7b4

Browse files
akiykspaulmckrcu
authored andcommitted
docs/RCU/rcubarrier: Adjust 'Answer' parts of QQs as definition-lists
The "Answer" parts of QQs divert from proper format of definition-lists as described at [1] and are not rendered as such. Adjust them. Link: [1] https://docutils.sourceforge.io/docs/ref/rst/restructuredtext.html#definition-lists Signed-off-by: Akira Yokosawa <[email protected]> Signed-off-by: Paul E. McKenney <[email protected]>
1 parent 7a21ddf commit a75f7b4

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

Documentation/RCU/rcubarrier.rst

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,8 @@ Quick Quiz #1:
296296
Is there any other situation where rcu_barrier() might
297297
be required?
298298

299-
Answer: Interestingly enough, rcu_barrier() was not originally
299+
Answer:
300+
Interestingly enough, rcu_barrier() was not originally
300301
implemented for module unloading. Nikita Danilov was using
301302
RCU in a filesystem, which resulted in a similar situation at
302303
filesystem-unmount time. Dipankar Sarma coded up rcu_barrier()
@@ -315,7 +316,8 @@ Quick Quiz #2:
315316
Why doesn't line 8 initialize rcu_barrier_cpu_count to zero,
316317
thereby avoiding the need for lines 9 and 10?
317318

318-
Answer: Suppose that the on_each_cpu() function shown on line 8 was
319+
Answer:
320+
Suppose that the on_each_cpu() function shown on line 8 was
319321
delayed, so that CPU 0's rcu_barrier_func() executed and
320322
the corresponding grace period elapsed, all before CPU 1's
321323
rcu_barrier_func() started executing. This would result in
@@ -351,7 +353,8 @@ Quick Quiz #3:
351353
are delayed for a full grace period? Couldn't this result in
352354
rcu_barrier() returning prematurely?
353355

354-
Answer: This cannot happen. The reason is that on_each_cpu() has its last
356+
Answer:
357+
This cannot happen. The reason is that on_each_cpu() has its last
355358
argument, the wait flag, set to "1". This flag is passed through
356359
to smp_call_function() and further to smp_call_function_on_cpu(),
357360
causing this latter to spin until the cross-CPU invocation of

0 commit comments

Comments
 (0)