Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:'cpu' is going away. splice any existing rq_list entries from this* software queue to the hw queue dispatch list, and ensure that it* gets run.

Proto:static int blk_mq_hctx_notify_dead(unsigned int cpu, struct hlist_node *node)

Type:int

Parameter:

TypeParameterName
unsigned intcpu
struct hlist_node *node
2198  LIST_HEAD(tmp)
2201  hctx = hlist_entry_safe(node, structblk_mq_hw_ctx, cpuhp_dead)
2202  ctx = __blk_mq_get_ctx(@queue: Pointer to the request queue that owns this hardware context., cpu)
2203  type = @type: HCTX_TYPE_* flags. Type of hardware queue.
2205  spin_lock( & lock)
2206  If Not list_empty - tests whether a list is empty*@head: the list to test. Then
2207  list_splice_init - join two lists and reinitialise the emptied list.*@list: the new list to add.*@head: the place to add it in the first list.* The list at @list is reinitialised
2208  blk_mq_hctx_clear_pending(hctx, ctx)
2210  spin_unlock( & lock)
2212  If list_empty - tests whether a list is empty*@head: the list to test. Then Return 0
2215  spin_lock( & @lock: Protects the dispatch list. )
2216  list_splice_tail_init - join two lists and reinitialise the emptied list*@list: the new list to add.*@head: the place to add it in the first list.* Each of the lists is a queue.* The list at @list is reinitialised
2217  spin_unlock( & @lock: Protects the dispatch list. )
2219  blk_mq_run_hw_queue(hctx, true)
2220  Return 0