Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\rcu\tree.c Create Date:2022-07-28 10:26:14
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:Loop doing repeated quiescent-state forcing until the grace period ends.

Proto:static void rcu_gp_fqs_loop(void)

Type:void

Parameter:Nothing

1647  rnp = Return the root node of the rcu_state structure.
1649  first_gp_fqs = true
1650  j = READ_ONCE(jiffies_till_first_fqs)
1651  ret = 0
1652  cycle
1653  If Not ret Then
1655  WRITE_ONCE(Time at which to kick , jiffies + (j ? 3 * j : 2))
1658  trace_rcu_grace_period(Name of structure. , READ_ONCE(Grace-period sequence #. ), Strings used in tracepoints need to be exported via the* tracing system such that tools like perf and trace-cmd can* translate the string address pointers to actual text.("fqswait"))
1661  GP kthread sleep state. = Wait for force-quiescent-state time.
1662  ret = swait_event_idle_timeout_exclusive - wait up to timeout without load contribution*@wq: the waitqueue to wait on*@condition: a C expression for the event to wait for*@timeout: timeout at which we'll give up in jiffies* The process is put to sleep (Where GP task waits. , Helper function for swait_event_idle_exclusive() wakeup at force-quiescent-state* time., j)
1664  GP kthread sleep state. = Wait done for force-quiescent-state time.
1667  If Not READ_ONCE(CPUs or groups that need to switch in ) && Not rcu_preempt_blocked_readers_cgp(rnp) Then Break
1677  first_gp_fqs = false
1683  ret = 0
1685  Else
1693  ret = 1
1694  j = jiffies
1697  Else j = Time at which to invoke - j
Caller
NameDescribe
rcu_gp_kthreadBody of kthread that handles grace periods.