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:io_wqe_dec_running

Proto:static void io_wqe_dec_running(struct io_wqe *wqe, struct io_worker *worker)__must_hold(wqe->lock)

Type:void

Parameter:

TypeParameterName
struct io_wqe *wqe
struct io_worker *worker
304  acct = io_wqe_get_acct(wqe, worker)
306  If atomic_dec_and_test( & nr_running) && io_wqe_run_queue(wqe) Then 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.
Caller
NameDescribe
__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.