函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:blk_account_io_done

函数原型:void blk_account_io_done(struct request *req, u64 now)

返回类型:void

参数:

类型参数名称
struct request *req
u64now
1334  如果partContribute to IO statistics IFF:* a) it's attached to a gendisk, and* b) the queue had IO stats enabled when this request was started且非rq_flags按位与quest for flush sequence 的值则
1336  sgrp等于op_stat_group(req_op(req))
1339  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()()
1340  part等于part
1342  update_io_ticks(part, jiffies)
1343  part_stat_inc(part, ios[sgrp])
1344  part_stat_add(part, nsecs[sgrp], now - Time that this request was allocated for this IO. )
1345  part_stat_add(part, time_in_queue, secs_to_jiffies64 - Convert nsecs in u64 to jiffies64*@n: nsecs in u64* Unlike {m,u}secs_to_jiffies, type of input is not unsigned int but u64.* And this doesn't return MAX_JIFFY_OFFSET since this function is designed)
1346  part_dec_in_flight(q, part, rq_data_dir(req))
1348  hd_struct_put(part)
1349  part_stat_unlock()
调用者
名称描述
__blk_mq_end_request