Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:blk_account_io_completion

Proto:void blk_account_io_completion(struct request *req, unsigned int bytes)

Type:void

Parameter:

TypeParameterName
struct request *req
unsigned intbytes
1316  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 Then
1317  sgrp = op_stat_group(req_op(req))
1320  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()()
1321  part = part
1322  part_stat_add(part, sectors[sgrp], bytes >> 9)
1323  part_stat_unlock()
Caller
NameDescribe
blk_update_requestlk_update_request - Special helper function for request stacking drivers*@req: the request being processed*@error: block status code*@nr_bytes: number of bytes to complete @req* Description:* Ends I/O on a number of bytes attached to @req, but doesn't