Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Determine if previously allocated or extended slice is complete or not

Proto:static bool throtl_slice_used(struct throtl_grp *tg, bool rw)

Type:bool

Parameter:

TypeParameterName
struct throtl_grp *tg
boolrw
830  If Calculate whether a is in the range of [b, c].(jiffies, When did we start a new slice [rw], slice_end[rw]) Then Return false
833  Return true
Caller
NameDescribe
throtl_trim_sliceTrim the used slices and adjust slice start accordingly
tg_may_dispatchReturns whether one can dispatch a bio or not. Also returns approx number* of jiffies to wait before this bio is with-in IO rate and can be dispatched
start_parent_slice_with_credit