函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:bfq_bfqq_resume_state

函数原型:static void bfq_bfqq_resume_state(struct bfq_queue *bfqq, struct bfq_data *bfqd, struct bfq_io_cq *bic, bool bfq_already_existing)

返回类型:void

参数:

类型参数名称
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_existingbfq_bfqq_busy(bfqq)
1017  如果* 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.bfq_mark_bfqq_has_short_ttime(bfqq)
1019  否则bfq_clear_bfqq_has_short_ttime(bfqq)
1022  如果* Same purpose as the previous two fields for the I/O bound * classification of a queue.bfq_mark_bfqq_IO_bound(bfqq)
1024  否则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  如果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 )的值则
1042  否则
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  如果此条件成立可能性大(为编译器优化)(!busy)则返回
1055  如果old_wr_coeff恒等于1且actor by which the weight of this queue is multiplied 大于1则 number of weight-raised busy @bfq_queues 自加
1057  否则如果old_wr_coeff大于1且actor by which the weight of this queue is multiplied 恒等于1则 number of weight-raised busy @bfq_queues 自减
调用者
名称描述
bfq_init_rq