函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:__blk_mq_end_request

函数原型:inline void __blk_mq_end_request(struct request *rq, blk_status_t error)

返回类型:void

参数:

类型参数名称
struct request *rq
blk_status_terror
520  now等于0
522  如果Only need start/end time stamping if we have iostat or* blk stats enabled, or using an IO scheduler.now等于ktime_get_ns()
525  如果rq_flags按位与rack IO completion time
526  blk_mq_poll_stats_start(q)
527  blk_stat_add(rq, now)
530  如果internal_tag不等于负1则blk_mq_sched_completed_request(rq, now)
533  blk_account_io_done(rq, now)
535  如果* completion callback.
536  rq_qos_done(q, rq)
537  * completion callback.(rq, error)
538  否则
539  blk_mq_free_request(rq)
调用者
名称描述
blk_mq_end_request