Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:block\bio.c Create Date:2022-07-28 16:56:25
Last Modify:2020-03-17 23:13:58 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:generic_end_io_acct

Proto:void generic_end_io_acct(struct request_queue *q, int req_op, struct hd_struct *part, unsigned long start_time)

Type:void

Parameter:

TypeParameterName
struct request_queue *q
intreq_op
struct hd_struct *part
unsigned longstart_time
1790  now = jiffies
1791  duration = now - start_time
1792  sgrp = op_stat_group(req_op)
1794  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()()
1796  update_io_ticks(part, now)
1797  part_stat_add(part, nsecs[sgrp], jiffies_to_nsecs(duration))
1798  part_stat_add(part, time_in_queue, duration)
1799  part_dec_in_flight(q, part, op_is_write(req_op))
1801  part_stat_unlock()