Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\sched\core.c Create Date:2022-07-28 09:36:09
Last Modify:2022-05-22 13:40:38 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:sched_submit_work

Proto:static inline void sched_submit_work(struct task_struct *tsk)

Type:void

Parameter:

TypeParameterName
struct task_struct *tsk
4113  If Not run state Then Return
4123  If Per task flags (PF_*), defined further below: & (I'm a workqueue worker | Task is an IO worker ) Then
4124  Even if we don't have any preemption, we need preempt disable/enable* to be barriers, so that we don't have things like get_user/put_user* that can cause faults and scheduling migrate into our preempt-protected* region.()
4125  If Per task flags (PF_*), defined further below: & I'm a workqueue worker Then wq_worker_sleeping - a worker is going to sleep*@task: task going to sleep* This function is called from schedule() when a busy worker is* going to sleep.
4127  Else io_wq_worker_sleeping(tsk)
4129  preempt_enable_no_resched()
4132  If tsk_is_pi_blocked(tsk) Then Return
4139  If blk_needs_flush_plug(tsk) Then blk_schedule_flush_plug(tsk)
Caller
NameDescribe
schedule