Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:block\blk-mq.c Create Date:2022-07-28 17:10:53
Last Modify:2020-03-17 23:18:05 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:blk_mq_exit_hctx

Proto:static void blk_mq_exit_hctx(struct request_queue *q, struct blk_mq_tag_set *set, struct blk_mq_hw_ctx *hctx, unsigned int hctx_idx)

Type:void

Parameter:

TypeParameterName
struct request_queue *q
struct blk_mq_tag_set *set
struct blk_mq_hw_ctx *hctx>ctxs will be freed in queue's release handler
unsigned inthctx_idx
2234  If blk_mq_hw_queue_mapped(>ctxs will be freed in queue's release handler ) Then blk_mq_tag_idle(>ctxs will be freed in queue's release handler )
2237  If exit_request Then exit_request(set, flush_rq, hctx_idx)
2240  If exit_hctx Then exit_hctx(>ctxs will be freed in queue's release handler , hctx_idx)
2243  blk_mq_remove_cpuhp(>ctxs will be freed in queue's release handler )
2245  spin_lock( & unused_hctx_lock)
2246  list_add - add a new entry*@new: new entry to be added*@head: list head to add it after* Insert a new entry after the specified head.* This is good for implementing stacks.
2247  spin_unlock( & unused_hctx_lock)
Caller
NameDescribe
blk_mq_exit_hw_queues
blk_mq_realloc_hw_ctxs