Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:tg_dispatch_one_bio

Proto:static void tg_dispatch_one_bio(struct throtl_grp *tg, bool rw)

Type:void

Parameter:

TypeParameterName
struct throtl_grp *tg
boolrw
1134  sq = this group's service queue
1135  parent_sq = the parent service_queue
1136  parent_tg = sq_to_tg - return the throl_grp the specified service queue belongs to*@sq: the throtl_service_queue of interest* Return the throtl_grp @sq belongs to. If @sq is the top-level one* embedded in throtl_data, %NULL is returned.
1137  struct throtl_grp * tg_to_put = NULL
1146  bio = hrotl_pop_queued - pop the first bio form a qnode list*@queued: the qnode list to pop a bio from*@tg_to_put: optional out argument for throtl_grp to put* Pop the first bio from the qnode list @queued
1147  number of queued bios [rw]--
1149  throtl_charge_bio(tg, bio)
1158  If parent_tg Then
1159  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,
1160  start_parent_slice_with_credit(tg, parent_tg, rw)
1161  Else
1162  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.
1164  BUG_ON(nr_queued[rw] <= 0)
1165  nr_queued[rw]--
1168  Trim the used slices and adjust slice start accordingly
1170  If tg_to_put Then lkg_put - put a blkg reference*@blkg: blkg to put
Caller
NameDescribe
throtl_dispatch_tg
tg_drain_biosDispatch all bios from all children tg's queued on @parent_sq. On* return, @parent_sq is guaranteed to not have any active children tg's* and all bios from previously active tg's are on @parent_sq->bio_lists[].