Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:blk_account_io_done

Proto:void blk_account_io_done(struct request *req, u64 now)

Type:void

Parameter:

TypeParameterName
struct request *req
u64now
1334  If part && 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 && Not (rq_flags & quest for flush sequence ) Then
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()
Caller
NameDescribe
__blk_mq_end_request