函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:bfq_update_has_short_ttime

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

返回类型:void

参数:

类型参数名称
struct bfq_data *bfqd
struct bfq_queue *bfqq
struct bfq_io_cq *bic
5222  bool has_short_ttime = true, state_changed
5229  如果非bfq_bfqq_sync(bfqq)或bfq_class_idle(bfqq)或 maximum idling time 恒等于0则返回
5234  如果ime_is_after_eq_jiffies(a) return true if a is after or equal to jiffies(ime of last split + * Minimum idle period after which weight-raising may be * reactivated for a queue (in jiffies).)则返回
5242  如果atomic_read( & 活跃引用)恒等于0或bfq_sample_valid(umber of thinktime samples )且average process thinktime 大于 maximum idling time has_short_ttime = false
5247  state_changed等于has_short_ttime不等于bfq_bfqq_has_short_ttime(bfqq)
5249  如果has_short_ttimebfq_mark_bfqq_has_short_ttime(bfqq)
5251  否则bfq_clear_bfqq_has_short_ttime(bfqq)
5338  如果state_changedlast total-service-time sample, see bfq_update_inject_limit() 恒等于0且ime_is_before_eq_jiffies(a) return true if a is before or equal to jiffies(last time the inject limit has been decreased, in jiffies + msecs_to_jiffies: - convert milliseconds to jiffies*@m: time in milliseconds* conversion is done as follows:* - negative values mean 'infinite timeout' (MAX_JIFFY_OFFSET)* - 'too large' values [that would result in larger than)或非has_short_ttime的值则bfq_reset_inject_limit(bfqd, bfqq)
调用者
名称描述
__bfq_insert_requestrns true if it causes the idle timer to be disabled