函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Returns true if the IO request should be accounted, false if not.* May sleep, if we have exceeded the writeback limits. Caller can pass* in an irq held spinlock, if it holds one when calling this function.* If we do sleep, we'll release and re-grab it.

函数原型:static void wbt_wait(struct rq_qos *rqos, struct bio *bio)

返回类型:void

参数:

类型参数名称
struct rq_qos *rqos
struct bio *bio
581  rwb等于RQWB(rqos)
584  flags等于bio_to_wbt_flags(rwb, bio)
585  如果非flags按位与 write, tracked for throttling 的值则
586  如果flags按位与 read wb_timestamp(rwb, & last non-throttled issue )
588  返回
591  Block if we will exceed our limit, or if we are currently waiting for* the timer to kick off queuing again.
593  如果非lk_stat_is_active() - Check if a block statistics callback is currently* gathering statistics.*@cb: The callback.rwb_arm_timer(rwb)