Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:blk_account_io_start

Proto:void blk_account_io_start(struct request *rq, bool new_io)

Type:void

Parameter:

TypeParameterName
struct request *rq
boolnew_io
1356  rw = rq_data_dir(rq)
1358  If Not 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 Return
1361  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()()
1363  If Not new_io Then
1364  part = part
1365  part_stat_inc(part, merges[rw])
1366  Else
1367  part = disk_map_sector_rcu(rq_disk, lk_rq_pos() : the current sector* blk_rq_bytes() : bytes left in the entire request* blk_rq_cur_bytes() : bytes left in the current segment* blk_rq_err_bytes() : bytes left till the next error boundary* blk_rq_sectors() : sectors left in the entire )
1368  If Not hd_struct_try_get(part) Then
1377  part = part0
1380  part_inc_in_flight(q, part, rw)
1381  part = part
1384  update_io_ticks(part, jiffies)
1386  part_stat_unlock()
Caller
NameDescribe
bio_attempt_back_merge
bio_attempt_front_merge
bio_attempt_discard_merge
blk_insert_cloned_requestlk_insert_cloned_request - Helper for stacking drivers to submit a request*@q: the queue to submit the request*@rq: the request being queued
blk_execute_rq_nowaitlk_execute_rq_nowait - insert a request into queue for execution*@q: queue to insert the request in*@bd_disk: matching gendisk*@rq: request to insert*@at_head: insert request at head or tail of queue*@done: I/O completion handler* Description:* Insert a
blk_mq_bio_to_request