Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:io_wq_can_queue

Proto:static bool io_wq_can_queue(struct io_wqe *wqe, struct io_wqe_acct *acct, struct io_wq_work *work)

Type:bool

Parameter:

TypeParameterName
struct io_wqe *wqe
struct io_wqe_acct *acct
struct io_wq_work *work
718  If Not (flags & IO_WQ_WORK_UNBOUND) Then Return true
720  If atomic_read( & nr_running) Then Return 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 = Not 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  If free_worker Then Return true
729  If atomic_read( & processes) >= max_workers && Not (Check operation authority || Check operation authority) Then Return false
733  Return true
Caller
NameDescribe
io_wqe_enqueue