Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:We need a worker. If we find a free one, we're good. If not, and we're* below the max number of workers, wake up the manager to create one.

Proto:static void io_wqe_wake_worker(struct io_wqe *wqe, struct io_wqe_acct *acct)

Type:void

Parameter:

TypeParameterName
struct io_wqe *wqe
struct io_wqe_acct *acct
284  WARN_ON_ONCE(!max_workers)
286  _read_lock() - mark the beginning of an RCU read-side critical section* When synchronize_rcu() is invoked on one CPU while other CPUs* are within RCU read-side critical sections, then the* synchronize_rcu() is guaranteed to block until after all the other
287  ret = Check head of free list for an available worker. If one isn't available,* caller must wake up the wq manager to create one.
288  _read_unlock() - marks the end of an RCU read-side critical section.* In most situations, rcu_read_unlock() is immune from deadlock.* However, in kernels built with CONFIG_RCU_BOOST, rcu_read_unlock()
290  If Not ret && nr_workers < max_workers Then wake_up_process - Wake up a specific process*@p: The process to be woken up.* Attempt to wake up the nominated process and move it to the set of runnable* processes.* Return: 1 if the process was woken up, 0 if it was already running.
Caller
NameDescribe
io_wqe_dec_running
io_wqe_enqueue