Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:The following function is not marked as __cold because it is* actually cold, but for the same performance goal described in the* comments on the likely() at the beginning of* bfq_setup_cooperator()

Proto:void __cold bfq_pos_tree_add_move(struct bfq_data *bfqd, struct bfq_queue *bfqq)

Type:void

Parameter:

TypeParameterName
struct bfq_data *bfqd
struct bfq_queue *bfqq
612  If quest-position tree root (see bfq_group's @rq_pos_tree) Then
613  rb_erase( & quest-position tree member (see bfq_group's @rq_pos_tree) , quest-position tree root (see bfq_group's @rq_pos_tree) )
614  quest-position tree root (see bfq_group's @rq_pos_tree) = NULL
618  If bfqq == fallback dummy bfqq for extreme OOM conditions Then Return
626  If bfq_too_late_for_merging(bfqq) Then Return
629  If bfq_class_idle(bfqq) Then Return
631  If Not fifo isn't expired, next request to serve Then Return
634  quest-position tree root (see bfq_group's @rq_pos_tree) = rq_pos_tree
635  __bfqq = bfq_rq_pos_tree_lookup(bfqd, quest-position tree root (see bfq_group's @rq_pos_tree) , lk_rq_pos() : the current sector* blk_rq_bytes() : bytes left in the entire request* blk_rq_cur_bytes() : bytes left in the current segment* blk_rq_err_bytes() : bytes left till the next error boundary* blk_rq_sectors() : sectors left in the entire , & parent, & p)
637  If Not __bfqq Then
638  rb_link_node( & quest-position tree member (see bfq_group's @rq_pos_tree) , parent, p)
639  rb_insert_color( & quest-position tree member (see bfq_group's @rq_pos_tree) , quest-position tree root (see bfq_group's @rq_pos_tree) )
640  Else quest-position tree root (see bfq_group's @rq_pos_tree) = NULL
Caller
NameDescribe
bfq_add_request
bfq_remove_request
bfq_request_merged
__bfq_bfqq_expire