Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:__blk_mq_end_request

Proto:inline void __blk_mq_end_request(struct request *rq, blk_status_t error)

Type:void

Parameter:

TypeParameterName
struct request *rq
blk_status_terror
520  now = 0
522  If Only need start/end time stamping if we have iostat or* blk stats enabled, or using an IO scheduler. Then now = ktime_get_ns()
525  If rq_flags & rack IO completion time Then
526  blk_mq_poll_stats_start(q)
527  blk_stat_add(rq, now)
530  If internal_tag != -1 Then blk_mq_sched_completed_request(rq, now)
533  blk_account_io_done(rq, now)
535  If * completion callback. Then
536  rq_qos_done(q, rq)
537  * completion callback.(rq, error)
538  Else
539  blk_mq_free_request(rq)
Caller
NameDescribe
blk_mq_end_request