Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name: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.

Proto:static void wbt_wait(struct rq_qos *rqos, struct bio *bio)

Type:void

Parameter:

TypeParameterName
struct rq_qos *rqos
struct bio *bio
581  rwb = RQWB(rqos)
584  flags = bio_to_wbt_flags(rwb, bio)
585  If Not (flags & write, tracked for throttling ) Then
586  If flags & read Then wb_timestamp(rwb, & last non-throttled issue )
588  Return
591  Block if we will exceed our limit, or if we are currently waiting for* the timer to kick off queuing again.
593  If Not lk_stat_is_active() - Check if a block statistics callback is currently* gathering statistics.*@cb: The callback. Then rwb_arm_timer(rwb)