Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:block\elevator.c Create Date:2022-07-28 16:57:43
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:elv_merge

Proto:enum elv_merge elv_merge(struct request_queue *q, struct request **req, struct bio *bio)

Type:enum elv_merge

Parameter:

TypeParameterName
struct request_queue *q
struct request **req
struct bio *bio
307  e = elevator
316  If blk_queue_nomerges(q) || Not bio_mergeable(bio) Then Return ELEVATOR_NO_MERGE
322  If last_merge && an we safely merge with this request? Then
323  ret = blk_try_merge(last_merge, bio)
325  If ret != ELEVATOR_NO_MERGE Then
326  req = last_merge
327  Return ret
331  If blk_queue_noxmerges(q) Then Return ELEVATOR_NO_MERGE
337  __rq = elv_rqhash_find(q, device address in 512 byte sectors )
338  If __rq && an we safely merge with this request? Then
339  req = __rq
340  Return ELEVATOR_BACK_MERGE
343  If request_merge Then Return request_merge(q, req, bio)
346  Return ELEVATOR_NO_MERGE
Caller
NameDescribe
blk_mq_sched_try_merge