函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:lkcg_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

函数原型:void blkcg_schedule_throttle(struct request_queue *q, bool use_memdelay)

返回类型:void

参数:

类型参数名称
struct request_queue *q
booluse_memdelay
1679  如果此条件成立可能性小(为编译器优化)(flags & I am a kernel thread )则返回
1682  如果非blk_get_queue(q)则返回
1685  如果throttle_queueblk_put_queue(throttle_queue)
1687  throttle_queue等于q
1688  如果use_memdelayuse_memdelay等于use_memdelay
1690  set_notify_resume - cause tracehook_notify_resume() to be called*@task: task that will call tracehook_notify_resume()* Calling this arranges that @task will call tracehook_notify_resume()* before returning to user mode
调用者
名称描述
__blkcg_iolatency_throttle
ioc_rqos_throttle