函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:block\blk-throttle.c Create Date:2022-07-27 19:18:27
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称: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,

函数原型:static void throtl_add_bio_tg(struct bio *bio, struct throtl_qnode *qn, struct throtl_grp *tg)

返回类型:void

参数:

类型参数名称
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  如果非qnqn等于* 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  如果非 number of queued bios [rw]则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.)
调用者
名称描述
tg_dispatch_one_bio
blk_throtl_bio