Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:throtl_start_new_slice

Proto:static inline void throtl_start_new_slice(struct throtl_grp *tg, bool rw)

Type:void

Parameter:

TypeParameterName
struct throtl_grp *tg
boolrw
801  Number of bytes disptached in current slice [rw] = 0
802  Number of bio's dispatched in current slice [rw] = 0
803  When did we start a new slice [rw] = jiffies
804  slice_end[rw] = jiffies + throtl_slice
805  hrotl_log - log debug message via blktrace*@sq: the service_queue being reported*@fmt: printf format string*@args: printf args* The messages are prefixed with "throtl BLKG_NAME" if @sq belongs to a* throtl_grp; otherwise, just "throtl".( & this group's service queue , "[%c] new slice start=%lu end=%lu jiffies=%lu", rw == generic data direction definitions ? 'R' : 'W', When did we start a new slice [rw], slice_end[rw], jiffies)
Caller
NameDescribe
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
tg_conf_updated