函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:blk_mq_sched_try_merge

函数原型:bool blk_mq_sched_try_merge(struct request_queue *q, struct bio *bio, unsigned int nr_segs, struct request **merged_request)

返回类型:bool

参数:

类型参数名称
struct request_queue *q
struct bio *bio
unsigned intnr_segs
struct request **merged_request
232  :elv_merge(q, & rq, bio)恒等于ELEVATOR_BACK_MERGE
233  如果非blk_mq_sched_allow_merge(q, rq, bio)则返回:false
235  如果非bio_attempt_back_merge(rq, bio, nr_segs)则返回:false
237  merged_request等于attempt_back_merge(q, rq)
238  如果非merged_requestelv_merged_request(q, rq, ELEVATOR_BACK_MERGE)
240  返回:true
241  :elv_merge(q, & rq, bio)恒等于ELEVATOR_FRONT_MERGE
242  如果非blk_mq_sched_allow_merge(q, rq, bio)则返回:false
244  如果非bio_attempt_front_merge(rq, bio, nr_segs)则返回:false
246  merged_request等于attempt_front_merge(q, rq)
247  如果非merged_requestelv_merged_request(q, rq, ELEVATOR_FRONT_MERGE)
249  返回:true
250  :elv_merge(q, & rq, bio)恒等于ELEVATOR_DISCARD_MERGE
251  返回:bio_attempt_discard_merge(q, rq, bio)
252  默认
253  返回:false
调用者
名称描述
dd_bio_merge
bfq_bio_merge