Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:rns true if it causes the idle timer to be disabled

Proto:static bool __bfq_insert_request(struct bfq_data *bfqd, struct request *rq)

Type:bool

Parameter:

TypeParameterName
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  If new_bfqq Then
5417  umber of requests currently allocated ++
5418  umber of requests currently allocated --
5419  ce counter ++
5428  If bic_to_bfqq(RQ_BIC(rq), 1) == bfqq Then bfq_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 = bfqq && bfq_bfqq_wait_request(bfqq)
5447  bfq_add_request(rq)
5448  idle_timer_disabled = waiting && Not 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  list_add_tail - add a new entry*@new: new entry to be added*@head: list head to add it before* Insert a new entry before the specified head.* This is useful for implementing queues.
5453  Called when a new fs request (rq) is added to bfqq. Check if there's* something we should do about it.
5455  Return idle_timer_disabled
Caller
NameDescribe
bfq_insert_request