Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\io-wq.c Create Date:2022-07-28 20:22:40
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:Called when worker is going to sleep. If there are no workers currently* running and we have work pending, wake up a free one or have the manager* set one up.

Proto:void io_wq_worker_sleeping(struct task_struct *tsk)

Type:void

Parameter:

TypeParameterName
struct task_struct *tsk
592  worker = kthread_data - return data value specified on kthread creation*@task: kthread task in question* Return the data value specified when kthread @task was created.* The caller is responsible for ensuring the validity of @task when* calling this function.
593  wqe = wqe
595  If Not (flags & IO_WORKER_F_UP) Then Return
597  If Not (flags & IO_WORKER_F_RUNNING) Then Return
600  flags &= ~IO_WORKER_F_RUNNING
602  spin_lock_irq( & lock)
603  io_wqe_dec_running(wqe, worker)
604  spin_unlock_irq( & lock)