函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:iolatency_pd_init

函数原型:static void iolatency_pd_init(struct blkg_policy_data *pd)

返回类型:void

参数:

类型参数名称
struct blkg_policy_data *pd
957  iolat等于pd_to_lat(pd)
958  blkg等于lat_to_blkg(iolat)
959  rqos等于blkcg_rq_qos( Pointer to the associated request_queue )
960  blkiolat等于BLKIOLATENCY(rqos)
961  now等于Convert ktime_t to nanoseconds
964  如果blk_queue_nonrot( Pointer to the associated request_queue )则ssd = true
966  否则ssd = false
969  遍历可用CPU(cpu)
971  stat等于per_cpu_ptr(stats, cpu)
972  latency_stat_init(iolat, stat)
975  latency_stat_init(iolat, & cur_stat)
976  rq_wait_init( & rq_wait)
977  spin_lock_init( & lock)
978  queue_depth等于 Max # of requests
979  max_depth等于UINT_MAX
980  default_depth等于queue_depth
981  blkiolat等于blkiolat
982  cur_win_nsec等于100乘NSEC_PER_MSEC
983  atomic64_set( & window_start, now)
989  如果 all non-root blkcg_gq's are guaranteed to have access to parent lkg_to_pdata - get policy private data*@blkg: blkg of interest*@pol: policy of interest* Return pointer to private data associated with the @blkg-@pol pair.
990  parent等于blkg_to_lat( all non-root blkcg_gq's are guaranteed to have access to parent )
991  atomic_set( & scale_cookie, atomic_read( & Cookie to tell if we need to scale up or down. ))
993  否则
994  atomic_set( & scale_cookie, DEFAULT_SCALE_COOKIE)
997  atomic_set( & Cookie to tell if we need to scale up or down. , DEFAULT_SCALE_COOKIE)