Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:bfqq_find_close

Proto:static struct bfq_queue *bfqq_find_close(struct bfq_data *bfqd, struct bfq_queue *bfqq, sector_t sector)

Type:struct bfq_queue

Parameter:

TypeParameterName
struct bfq_data *bfqd
struct bfq_queue *bfqq
sector_tsector
2414  root = rq_pos_tree
2418  If RB_EMPTY_ROOT(root) Then Return NULL
2425  __bfqq = bfq_rq_pos_tree_lookup(bfqd, root, sector, & parent, NULL)
2426  If __bfqq Then Return __bfqq
2434  __bfqq = rb_entry(parent, structbfq_queue, pos_node)
2435  If bfq_rq_close_to_sector( fifo isn't expired, next request to serve , true, sector) Then Return __bfqq
2438  If 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 < sector Then node = rb_next( & quest-position tree member (see bfq_group's @rq_pos_tree) )
2440  Else node = rb_prev( & quest-position tree member (see bfq_group's @rq_pos_tree) )
2442  If Not node Then Return NULL
2445  __bfqq = rb_entry(node, structbfq_queue, pos_node)
2446  If bfq_rq_close_to_sector( fifo isn't expired, next request to serve , true, sector) Then Return __bfqq
2449  Return NULL
Caller
NameDescribe
bfq_find_close_cooperator