函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:block\blk-throttle.c Create Date:2022-07-27 19:17:36
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称: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

函数原型:static struct bio *throtl_pop_queued(struct list_head *queued, struct throtl_grp **tg_to_put)

返回类型:struct bio

参数:

类型参数名称
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  如果链表为空则返回:NULL
460  bio等于bio_list_pop( & queued bios )
461  WARN_ON_ONCE(!bio)
463  如果bio_list_empty( & queued bios )则
464  删除链表项并重新初始化
465  如果tg_to_puttg_to_put等于g this qnode belongs to
467  否则lkg_put - put a blkg reference*@blkg: blkg to put
469  否则
470  链表项移动到尾部
473  返回:bio
调用者
名称描述
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().