Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:dd_bio_merge

Proto:static bool dd_bio_merge(struct blk_mq_hw_ctx *hctx, struct bio *bio, unsigned int nr_segs)

Type:bool

Parameter:

TypeParameterName
struct blk_mq_hw_ctx *hctx
struct bio *bio
unsigned intnr_segs
465  q = @queue: Pointer to the request queue that owns this hardware context.
466  dd = elevator_data
467  struct request * free = NULL
470  spin_lock( & lock)
471  ret = blk_mq_sched_try_merge(q, bio, nr_segs, & free)
472  spin_unlock( & lock)
474  If free Then blk_mq_free_request(free)
477  Return ret