Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:bfq_update_has_short_ttime

Proto:static void bfq_update_has_short_ttime(struct bfq_data *bfqd, struct bfq_queue *bfqq, struct bfq_io_cq *bic)

Type:void

Parameter:

TypeParameterName
struct bfq_data *bfqd
struct bfq_queue *bfqq
struct bfq_io_cq *bic
5222  bool has_short_ttime = true, state_changed
5229  If Not bfq_bfqq_sync(bfqq) || bfq_class_idle(bfqq) || maximum idling time == 0 Then Return
5234  If 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).) Then Return
5242  If atomic_read( & active_ref) == 0 || bfq_sample_valid(umber of thinktime samples ) && average process thinktime > maximum idling time Then has_short_ttime = false
5247  state_changed = has_short_ttime != bfq_bfqq_has_short_ttime(bfqq)
5249  If has_short_ttime Then bfq_mark_bfqq_has_short_ttime(bfqq)
5251  Else bfq_clear_bfqq_has_short_ttime(bfqq)
5338  If state_changed && last 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) || Not has_short_ttime ) Then bfq_reset_inject_limit(bfqd, bfqq)
Caller
NameDescribe
__bfq_insert_requestrns true if it causes the idle timer to be disabled