Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:blk_attempt_req_merge

Proto:int blk_attempt_req_merge(struct request_queue *q, struct request *rq, struct request *next)

Type:int

Parameter:

TypeParameterName
struct request_queue *q
struct request *rq
struct request *next
859  free = For non-mq, this has to be called with the request spinlock acquired.* For mq with scheduling, the appropriate queue wide lock should be held.
860  If free Then
861  blk_put_request(free)
862  Return 1
865  Return 0
Caller
NameDescribe
elv_attempt_insert_mergeAttempt to do an insertion back merge. Only check for the case where* we can append 'rq' to an existing request, so we can throw 'rq' away* afterwards.* Returns true if we merged, false otherwise