Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name: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.

Proto: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)

Type:bool

Parameter:

TypeParameterName
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  If Iterate list of requests and see if we can merge this bio with any* of them. Then
317  rq_merged++
318  Return true
321  Return false
Caller
NameDescribe
__blk_mq_sched_bio_merge