Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:bfq_bfqq_resume_state

Proto:static void bfq_bfqq_resume_state(struct bfq_queue *bfqq, struct bfq_data *bfqd, struct bfq_io_cq *bic, bool bfq_already_existing)

Type:void

Parameter:

TypeParameterName
struct bfq_queue *bfqq
struct bfq_data *bfqd
struct bfq_io_cq *bic
boolbfq_already_existing
1014  old_wr_coeff = actor by which the weight of this queue is multiplied
1015  busy = bfq_already_existing && bfq_bfqq_busy(bfqq)
1017  If * Snapshot of the has_short_time flag before merging; taken * to remember its value while the queue is merged, so as to * be able to restore it in case of split. Then bfq_mark_bfqq_has_short_ttime(bfqq)
1019  Else bfq_clear_bfqq_has_short_ttime(bfqq)
1022  If * Same purpose as the previous two fields for the I/O bound * classification of a queue. Then bfq_mark_bfqq_IO_bound(bfqq)
1024  Else bfq_clear_bfqq_IO_bound(bfqq)
1027  next weight if a change is in progress = * Save the weight when a merge occurs, to be able * to restore it in case of split. If the weight is not * correctly resumed when the queue is recycled, * then the weight of the recycled queue could differ * from the weight of the original queue.
1028  associated @bfq_ttime struct = saved_ttime
1029  actor by which the weight of this queue is multiplied = * Similar to previous fields: save wr information.
1030  Value of wr start time when switching to soft rt = saved_wr_start_at_switch_to_srt
1031  Start time of the current weight-raising period if* the @bfq-queue is being weight-raised, otherwise* finish time of the last weight-raising period. = saved_last_wr_start_finish
1032  current maximum weight-raising time for this queue = saved_wr_cur_max_time
1034  If actor by which the weight of this queue is multiplied > 1 && (bfq_bfqq_in_large_burst(bfqq) || ime_is_before_jiffies(a) return true if a is before jiffies (Start time of the current weight-raising period if* the @bfq-queue is being weight-raised, otherwise* finish time of the last weight-raising period. + current maximum weight-raising time for this queue )) Then
1042  Else
1044  bfq_log_bfqq(parent bfq_data , bfqq, "resume state: switching off wr")
1050  flag, set to request a weight, ioprio or ioprio_class change = 1
1052  If Value is more likely to compile time(!busy) Then Return
1055  If old_wr_coeff == 1 && actor by which the weight of this queue is multiplied > 1 Then number of weight-raised busy @bfq_queues ++
1057  Else if old_wr_coeff > 1 && actor by which the weight of this queue is multiplied == 1 Then number of weight-raised busy @bfq_queues --
Caller
NameDescribe
bfq_init_rq