函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:block\blk-mq.c Create Date:2022-07-27 18:44:08
Last Modify:2020-03-17 23:18:05 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:__blk_mq_free_request

函数原型:static void __blk_mq_free_request(struct request *rq)

返回类型:void

参数:

类型参数名称
struct request *rq
472  q等于q
473  ctx等于mq_ctx
474  hctx等于mq_hctx
475  sched_tag等于internal_tag
477  blk_pm_mark_last_busy(rq)
478  mq_hctx = NULL
479  如果tag不等于负1则blk_mq_put_tag(hctx, @tags: Tags owned by the block driver. A tag at this set is only* assigned when a request is dispatched from a hardware queue., ctx, tag)
481  如果sched_tag不等于负1则blk_mq_put_tag(hctx, @sched_tags: Tags owned by I/O scheduler. If there is an I/O* scheduler associated with a request queue, a tag is assigned when* that request is allocated. Else, this member is not used., ctx, sched_tag)
483  blk_mq_sched_restart(hctx)
484  blk_queue_exit(q)
调用者
名称描述
blk_mq_free_request
blk_mq_check_expired