Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:tg_service_queue_add

Proto:static void tg_service_queue_add(struct throtl_grp *tg)

Type:void

Parameter:

TypeParameterName
struct throtl_grp *tg
671  parent_sq = the parent service_queue
672  node = rb_node
673  struct rb_node * parent = NULL
675  key = * Dispatch time in jiffies. This is the estimated time when group * will unthrottle and is ready to dispatch more bio. It is used as * key to sort active groups in service tree.
676  bool leftmost = true
678  When ( * node != NULL) cycle
679  parent = node
680  __tg = rb_entry_tg(parent)
682  If time_before(key, * Dispatch time in jiffies. This is the estimated time when group * will unthrottle and is ready to dispatch more bio. It is used as * key to sort active groups in service tree.) Then node = rb_left
684  Else
685  node = rb_right
686  leftmost = false
690  rb_link_node( & active throtl group service_queue member , parent, node)
691  rb_insert_color_cached( & active throtl group service_queue member , & RB tree of active tgs , leftmost)
Caller
NameDescribe
__throtl_enqueue_tg