Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Two cases of handling DISCARD merge:* If max_discard_segments > 1, the driver takes every bio* as a range and send them to controller together. The ranges* needn't to be contiguous.* Otherwise, the bios/requests will be handled as same as

Proto:static inline bool blk_discard_mergable(struct request *req)

Type:bool

Parameter:

TypeParameterName
struct request *req
723  If req_op(req) == REQ_OP_DISCARD && queue_max_discard_segments(q) > 1 Then Return true
726  Return false
Caller
NameDescribe
blk_try_req_merge
attempt_mergeFor non-mq, this has to be called with the request spinlock acquired.* For mq with scheduling, the appropriate queue wide lock should be held.
blk_try_merge