函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\io-wq.c Create Date:2022-07-29 10:55:36
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:io_wqe_dec_running

函数原型:static void io_wqe_dec_running(struct io_wqe *wqe, struct io_worker *worker)__must_hold(wqe->lock)

返回类型:void

参数:

类型参数名称
struct io_wqe *wqe
struct io_worker *worker
304  acct等于io_wqe_get_acct(wqe, worker)
306  如果atomic_dec_and_test( & nr_running)且io_wqe_run_queue(wqe)则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.
调用者
名称描述
__io_worker_busyWorker will start processing some work. Move it to the busy list, if* it's currently on the freelist
io_wq_worker_sleepingCalled 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.