Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:hrotl_add_bio_tg - add a bio to the specified throtl_grp*@bio: bio to add*@qn: qnode to use*@tg: the target throtl_grp* Add @bio to @tg's service_queue using @qn. If @qn is not specified,

Proto:static void throtl_add_bio_tg(struct bio *bio, struct throtl_qnode *qn, struct throtl_grp *tg)

Type:void

Parameter:

TypeParameterName
struct bio *bio
struct throtl_qnode *qn
struct throtl_grp *tg>qnode_on_self[] is used.
1075  sq = this group's service queue
1076  rw = Return the data direction, READ or WRITE.(bio)
1078  If Not qn Then qn = * qnode_on_self is used when bios are directly queued to this * throtl_grp so that local bios compete fairly with bios * dispatched from children. qnode_on_parent is used when bios are * dispatched from this throtl_grp into its parent and will compete * wi[rw]
1087  If Not number of queued bios [rw] Then flags |= bio_lists[] became non-empty
1090  hrotl_qnode_add_bio - add a bio to a throtl_qnode and activate it*@bio: bio being added*@qn: qnode to add bio to*@queued: the service_queue->queued[] list @qn belongs to* Add @bio to @qn and put @qn on @queued if it's not already on.
1092  number of queued bios [rw]++
1093  throtl_enqueue_tg(>qnode_on_self[] is used.)
Caller
NameDescribe
tg_dispatch_one_bio
blk_throtl_bio