函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:__blkcg_iolatency_throttle

函数原型:static void __blkcg_iolatency_throttle(struct rq_qos *rqos, struct iolatency_grp *iolat, bool issue_as_root, bool use_memdelay)

返回类型:void

参数:

类型参数名称
struct rq_qos *rqos
struct iolatency_grp *iolat
boolissue_as_root
booluse_memdelay
285  rqw等于rq_wait
286  use_delay等于atomic_read( & use_delay)
288  如果use_delaylkcg_schedule_throttle - this task needs to check for throttling*@q: the request queue IO was submitted on*@use_memdelay: do we charge this to memory delay for PSI* This is called by the IO controller when we know there's delay accumulated
298  如果issue_as_rootfatal_signal_pending(当前进程)则
299  atomic_inc( & inflight)
300  返回
303  q_qos_wait - throttle on a rqw if we need to*@rqw: rqw to throttle on*@private_data: caller provided specific data*@acquire_inflight_cb: inc the rqw->inflight counter if we can*@cleanup_cb: the callback to cleanup in case we race with a waker
调用者
名称描述
blkcg_iolatency_throttle