Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:block\blk-wbt.c Create Date:2022-07-28 18:07:11
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

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

Proto:static void __wbt_wait(struct rq_wb *rwb, enum wbt_flags wb_acct, unsigned long rw)

Type:void

Parameter:

TypeParameterName
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
Caller
NameDescribe
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.