函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Reverse check our software queue for entries that we could potentially* merge with. Currently includes a hand-wavy stop count of 8, to not spend* too much time checking for merges.

函数原型:static bool blk_mq_attempt_merge(struct request_queue *q, struct blk_mq_hw_ctx *hctx, struct blk_mq_ctx *ctx, struct bio *bio, unsigned int nr_segs)

返回类型:bool

参数:

类型参数名称
struct request_queue *q
struct blk_mq_hw_ctx *hctx
struct blk_mq_ctx *ctx
struct bio *bio
unsigned intnr_segs
312  type等于@type: HCTX_TYPE_* flags. Type of hardware queue.
314  lockdep_assert_held( & lock)
316  如果Iterate list of requests and see if we can merge this bio with any* of them.
317  rq_merged自加
318  返回:true
321  返回:false
调用者
名称描述
__blk_mq_sched_bio_merge