Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:hrotl_peek_queued - peek the first bio on a qnode list*@queued: the qnode list to peek

Proto:static struct bio *throtl_peek_queued(struct list_head *queued)

Type:struct bio

Parameter:

TypeParameterName
struct list_head *queued
426  qn = list_first_entry - get the first element from a list*@ptr: the list head to take the element from.*@type: the type of the struct this is embedded in.*@member: the name of the list_head within the struct.* Note, that list is expected to be not empty.(queued, structthrotl_qnode, node)
429  If list_empty - tests whether a list is empty*@head: the list to test. Then Return NULL
432  bio = bio_list_peek( & queued bios )
433  WARN_ON_ONCE(!bio)
434  Return bio
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_update_disptime
throtl_dispatch_tg
tg_drain_biosDispatch all bios from all children tg's queued on @parent_sq. On* return, @parent_sq is guaranteed to not have any active children tg's* and all bios from previously active tg's are on @parent_sq->bio_lists[].