函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:rns true if it causes the idle timer to be disabled

函数原型:static bool __bfq_insert_request(struct bfq_data *bfqd, struct request *rq)

返回类型:bool

参数:

类型参数名称
struct bfq_data *bfqd
struct request *rq
5408  bfqq等于RQ_BFQQ(rq), new_bfqq等于Attempt to schedule a merge of bfqq with the currently in-service* queue or with a close queue among the scheduled queues
5410  bool waiting, idle_timer_disabled = false
5412  如果new_bfqq
5417  umber of requests currently allocated 自加
5418  umber of requests currently allocated 自减
5419  ce counter 自加
5428  如果bic_to_bfqq(RQ_BIC(rq), 1)恒等于bfqqbfq_merge_bfqqs(bfqd, RQ_BIC(rq), bfqq, new_bfqq)
5432  bfq_clear_bfqq_just_created(bfqq)
5437  Task holds one reference to the queue, dropped when task exits. Each rq* in-flight on this queue also holds a reference, dropped when rq is freed.* Scheduler lock must be held here. Recall not to use bfqq after calling* this function on it.
5438  priv[1]等于new_bfqq
5439  bfqq等于new_bfqq
5442  bfq_update_io_thinktime(bfqd, bfqq)
5443  bfq_update_has_short_ttime(bfqd, bfqq, RQ_BIC(rq))
5444  bfq_update_io_seektime(bfqd, bfqq, rq)
5446  waiting等于bfqqbfq_bfqq_wait_request(bfqq)
5447  bfq_add_request(rq)
5448  idle_timer_disabled等于waiting且非bfq_bfqq_wait_request(bfqq)
5450  fifo_time等于ktime_get_ns()加* Timeout for async/sync requests; when it fires, requests * are served in fifo order.[rq_is_sync(rq)]
5451  添加链表项
5453  Called when a new fs request (rq) is added to bfqq. Check if there's* something we should do about it.
5455  返回:idle_timer_disabled
调用者
名称描述
bfq_insert_request