Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:hrotl_pop_queued - pop the first bio form a qnode list*@queued: the qnode list to pop a bio from*@tg_to_put: optional out argument for throtl_grp to put* Pop the first bio from the qnode list @queued

Proto:static struct bio *throtl_pop_queued(struct list_head *queued, struct throtl_grp **tg_to_put)

Type:struct bio

Parameter:

TypeParameterName
struct list_head *queued
struct throtl_grp **tg_to_put
454  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)
457  If list_empty - tests whether a list is empty*@head: the list to test. Then Return NULL
460  bio = bio_list_pop( & queued bios )
461  WARN_ON_ONCE(!bio)
463  If bio_list_empty( & queued bios ) Then
464  list_del_init - deletes entry from list and reinitialize it.*@entry: the element to delete from the list.
465  If tg_to_put Then tg_to_put = g this qnode belongs to
467  Else lkg_put - put a blkg reference*@blkg: blkg to put
469  Else
470  list_move_tail - delete from one list and add as another's tail*@list: the entry to move*@head: the head that will follow our entry
473  Return bio
Caller
NameDescribe
tg_dispatch_one_bio
blk_throtl_dispatch_work_fnlk_throtl_dispatch_work_fn - work function for throtl_data->dispatch_work*@work: work item being executed* This function is queued for execution when bio's reach the bio_lists[]* of throtl_data->service_queue. Those bio's are ready and issued by this
blk_throtl_drainlk_throtl_drain - drain throttled bios*@q: request_queue to drain throttled bios for* Dispatch all currently throttled bios on @q through ->make_request_fn().