函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:block\blk-merge.c Create Date:2022-07-27 18:41:31
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称: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

函数原型:static inline bool blk_discard_mergable(struct request *req)

返回类型:bool

参数:

类型参数名称
struct request *req
723  如果req_op(req)恒等于REQ_OP_DISCARDqueue_max_discard_segments(q)大于1则返回:true
726  返回:false
调用者
名称描述
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