Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:block\blk-merge.c Create Date:2022-07-28 17:06:12
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:blk_account_io_merge

Proto:static void blk_account_io_merge(struct request *req)

Type:void

Parameter:

TypeParameterName
struct request *req
701  If Contribute to IO statistics IFF:* a) it's attached to a gendisk, and* b) the queue had IO stats enabled when this request was started Then
704  Macros to operate on percpu disk statistics:* {disk|part|all}_stat_{add|sub|inc|dec}() modify the stat counters* and should be called between disk_stat_lock() and* disk_stat_unlock()()
705  part = part
707  part_dec_in_flight(q, part, rq_data_dir(req))
709  hd_struct_put(part)
710  part_stat_unlock()
Caller
NameDescribe
attempt_mergeFor non-mq, this has to be called with the request spinlock acquired.* For mq with scheduling, the appropriate queue wide lock should be held.