函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:blk_account_io_merge

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

返回类型:void

参数:

类型参数名称
struct request *req
701  如果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
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()
调用者
名称描述
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.