函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:It is the actual release handler for mq, but we do it from* request queue's release handler for avoiding use-after-free* and headache because q->mq_kobj shouldn't have been introduced,* but we can't group ctx/kctx kobj without it.

函数原型:void blk_mq_release(struct request_queue *q)

返回类型:void

参数:

类型参数名称
struct request_queue *q
2641  queue_for_each_hw_ctx(q, hctx, i)
2642  WARN_ON_ONCE(hctx && 链表为空)
2646  删除链表项并重新初始化
2647  递减引用计数对象
2650  释放内存
2656  blk_mq_sysfs_deinit(q)