函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Block if we will exceed our limit, or if we are currently waiting for* the timer to kick off queuing again.

函数原型:static void __wbt_wait(struct rq_wb *rwb, enum wbt_flags wb_acct, unsigned long rw)

返回类型:void

参数:

类型参数名称
struct rq_wb *rwb
enum wbt_flagswb_acct
unsigned longrw
519  rqw等于get_rq_wait(rwb, wb_acct)
520  struct wbt_wait_data data = {rwb = rwb, wb_acct = wb_acct, rw = rw, }
526  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
调用者
名称描述
wbt_waitReturns 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.