Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Update the entity prio values; note that the new values will not* be used until the next (re)activation.

Proto:static void bfq_set_next_ioprio_data(struct bfq_queue *bfqq, struct bfq_io_cq *bic)

Type:void

Parameter:

TypeParameterName
struct bfq_queue *bfqq
struct bfq_io_cq *bic
4972  tsk = current process
4974  bfqd = parent bfq_data
4976  If Not bfqd Then Return
4979  ioprio_class = IOPRIO_PRIO_CLASS( per (request_queue, blkcg) ioprio )
4981  Default
4982  dev_err(dev, "bfq: bad prio class %d\n", ioprio_class)
4985  Case ioprio_class == IOPRIO_CLASS_NONE
4989  xt ioprio and ioprio class if a change is in progress = process has set io priority explicitly, use that. if not, convert* the cpu scheduler nice value to an io priority
4990  xt ioprio and ioprio class if a change is in progress = This is for the case where the task hasn't asked for a specific IO class.* Check for idle and rt task process, and return appropriate IO class.
4991  Break
4992  Case ioprio_class == IOPRIO_CLASS_RT
4993  xt ioprio and ioprio class if a change is in progress = IOPRIO_PRIO_DATA( per (request_queue, blkcg) ioprio )
4994  xt ioprio and ioprio class if a change is in progress = IOPRIO_CLASS_RT
4995  Break
4996  Case ioprio_class == IOPRIO_CLASS_BE
4997  xt ioprio and ioprio class if a change is in progress = IOPRIO_PRIO_DATA( per (request_queue, blkcg) ioprio )
4998  xt ioprio and ioprio class if a change is in progress = IOPRIO_CLASS_BE
4999  Break
5000  Case ioprio_class == IOPRIO_CLASS_IDLE
5001  xt ioprio and ioprio class if a change is in progress = IOPRIO_CLASS_IDLE
5002  xt ioprio and ioprio class if a change is in progress = 7
5003  Break
5006  If xt ioprio and ioprio class if a change is in progress >= 8 best effort priority levels are supported Then
5007  pr_crit("bfq_set_next_ioprio_data: new_ioprio %d\n", xt ioprio and ioprio class if a change is in progress )
5009  xt ioprio and ioprio class if a change is in progress = 8 best effort priority levels are supported
5012  next weight if a change is in progress = bfq_ioprio_to_weight(xt ioprio and ioprio class if a change is in progress )
5013  flag, set to request a weight, ioprio or ioprio_class change = 1
Caller
NameDescribe
bfq_check_ioprio_change
bfq_init_bfqq