Lines Matching full:period

2 A Tour Through TREE_RCU's Grace-Period Memory Ordering
13 grace-period memory ordering guarantee is provided.
15 What Is Tree RCU's Grace Period Memory Ordering Guarantee?
20 Any code that happens after the end of a given RCU grace period is guaranteed
22 period that are within RCU read-side critical sections.
24 period is guaranteed to see the effects of all accesses following the end
25 of that grace period that are within RCU read-side critical sections.
34 two phases, one of which is executed before the grace period and
35 the other of which is executed after the grace period.
46 Tree RCU Grace Period Memory Ordering Building Blocks
49 The workhorse for RCU's grace-period memory ordering is the
74 period, including any CPUs that came online or went offline during
75 the grace period in question.
116 RCU's grace-period memory ordering guarantee to extend to any
123 The grace-period kthread invokes ``rcu_dynticks_snap()`` and
130 | But what about CPUs that remain offline for the entire grace period? |
134 | Such CPUs will be offline at the beginning of the grace period, so |
135 | the grace period won't expect quiescent states from them. Races |
136 | between grace-period start and CPU-hotplug operations are mediated |
143 a CPU that is not yet aware that the grace period has ended, and thus
144 might not yet be subject to the grace period's memory ordering.
164 Tree RCU's grace--period memory-ordering guarantees rely most heavily on
227 Tree RCU Grace Period Memory Ordering Components
230 Tree RCU's grace-period memory-ordering guarantee is provided by a
234 #. `Grace-Period Initialization`_
239 #. `Grace-Period Cleanup`_
248 If RCU's grace-period guarantee is to mean anything at all, any access
250 happen before the corresponding grace period. The implementation of this
251 portion of RCU's grace period guarantee is shown in the following
261 period until a later call to ``rcu_accelerate_cbs()``, as shown in the
277 There are a few other code paths within grace-period processing that
280 with a future grace-period number under the protection of the CPU's lead
289 update) happen before the start of the corresponding grace period.
303 Grace-Period Initialization
306 Grace-period initialization is carried out by the grace-period kernel
309 ordering through the grace-period computation will require duplicating
312 to keep the ``rcu_node`` river tractable, the grace-period kernel
314 section with the various phases of grace-period initialization.
316 The first ordering-related grace-period initialization action is to
317 advance the ``rcu_state`` structure's ``->gp_seq`` grace-period-number
328 grace period. In the common case where the number of online CPUs for
352 ``__note_gp_changes()`` to notice that a new grace period has started,
353 as described in the next section. But because the grace-period kthread
354 started the grace period at the root (with the advancing of the
357 the start of the grace period will happen after the actual start of the
358 grace period.
363 | But what about the CPU that started the grace period? Why wouldn't it |
364 | see the start of the grace period right when it started that grace |
365 | period? |
370 | CPU starting the grace period is immediately aware of having done so. |
372 | the CPU starting the grace period does not really become aware of the |
373 | start of this grace period until its first call to |
383 When all entities that might block the grace period have reported
385 states reported on their behalf), the grace period can end. Online
392 end of the grace period. Earlier quiescent states would push up the
400 point that CPU will notice the start of a new grace period while holding
402 diagram happens after the start of the grace period. In addition, this
405 grace period, and thus a critical section that the grace period must
412 | beginning of the grace period (the advancing of ``->gp_seq`` from |
413 | earlier), so why should the grace period wait on such a critical |
418 | It is indeed not necessary for the grace period to wait on such a |
421 | more scalable than a “big bang” all-at-once grace-period start could |
437 apply to the current grace period, it invokes ``rcu_report_rnp()`` which
466 The RCU grace-period kernel thread samples the per-CPU idleness variable
469 precede the idle period (the oval near the top of the diagram above)
470 will happen before the end of the current grace period. Similarly, the
471 beginning of the current grace period will happen before any RCU
472 read-side critical sections that follow the idle period (the oval near
475 Plumbing this into the full grace-period execution is described
492 ``->qsmaskinitnext``. The RCU grace-period kernel thread samples this
494 grace period.
496 Plumbing this into the full grace-period execution is described
503 states, and therefore the grace-period kernel thread must do the
525 | subordinate to that structure on which the current grace period is |
527 | root ended the grace period? |
538 Grace-Period Cleanup
541 Grace-period cleanup first scans the ``rcu_node`` tree breadth-first
548 As indicated by the oval at the bottom of the diagram, once grace-period
549 cleanup is complete, the next grace period can begin.
554 | But when precisely does the grace period end? |
558 | There is no useful single point at which the grace period can be said |
573 waiting for this grace period to end. These callbacks are identified by
591 period.
598 important, consider the top half of the `grace-period
599 cleanup <#Grace-Period%20Cleanup>`__ diagram. The callback might be
602 the rightmost leaf ``rcu_node`` structure, and the grace-period kernel
604 grace period's memory ordering might not yet have reached that CPU, so