函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:__blk_complete_request

函数原型:void __blk_complete_request(struct request *req)

返回类型:void

参数:

类型参数名称
struct request *req
96  q等于q
97  ccpu等于cpu
99  bool shared = false
101  BUG_ON(!complete)
103  local_irq_save(flags)
104  cpu等于当前cpu ID()
109  如果test_bit(complete on same CPU-group , & * various queue flags, see QUEUE_* below)且ccpu不等于负1则
110  如果非test_bit(rce complete on same CPU , & * various queue flags, see QUEUE_* below)则shared等于cpus_share_cache(cpu, ccpu)
112  否则ccpu等于cpu
123  如果ccpu恒等于cpushared
125  do_local :
126  list等于this_cpu_ptr( & blk_cpu_done)
127  添加链表项
135  如果链表后项恒等于ipi_listThis function must run with irqs disabled!
137  否则如果raise_blk_irq(ccpu, req)则转到:do_local
140  local_irq_restore(flags)
调用者
名称描述
__blk_mq_complete_request