函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:io_wq_can_queue

函数原型:static bool io_wq_can_queue(struct io_wqe *wqe, struct io_wqe_acct *acct, struct io_wq_work *work)

返回类型:bool

参数:

类型参数名称
struct io_wqe *wqe
struct io_wqe_acct *acct
struct io_wq_work *work
718  如果非flags按位与IO_WQ_WORK_UNBOUND的值则返回:true
720  如果atomic_read( & nr_running)则返回:true
723  _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
724  free_worker等于非hlist_nulls_empty( & free_list)
725  _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()
726  如果free_worker则返回:true
729  如果atomic_read( & processes)大于等于max_workers且非操作权限检查操作权限检查的值则返回:false
733  返回:true
调用者
名称描述
io_wqe_enqueue