Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:throtl_extend_slice

Proto:static inline void throtl_extend_slice(struct throtl_grp *tg, bool rw, unsigned long jiffy_end)

Type:void

Parameter:

TypeParameterName
struct throtl_grp *tg
boolrw
unsigned longjiffy_end
820  slice_end[rw] = undup - round up to the next specified multiple*@x: the value to up*@y: multiple to round up to* Rounds @x up to next multiple of @y. If @y will always be a power* of 2, consider using the faster round_up().(jiffy_end, throtl_slice)
821  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] extend 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