Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\workqueue.c Create Date:2022-07-28 09:23:50
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:Do we have too many workers and should some go away?

Proto:static bool too_many_workers(struct worker_pool *pool)

Type:bool

Parameter:

TypeParameterName
struct worker_pool *pool
802  managing = X: flags & POOL_MANAGER_ACTIVE
803  nr_idle = L: currently idle workers + managing
804  nr_busy = L: total number of workers - nr_idle
806  Return nr_idle > 2 && (nr_idle - 2) * MAX_IDLE_WORKERS_RATIO >= nr_busy
Caller
NameDescribe
worker_enter_idleworker_enter_idle - enter idle state*@worker: worker which is entering idle state*@worker is entering idle state. Update stats and idle timer if* necessary.* LOCKING:* spin_lock_irq(pool->lock).
idle_worker_timeout