函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\blkdev.h Create Date:2022-07-27 06:47:10
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:rq_mergeable

函数原型:static inline bool rq_mergeable(struct request *rq)

返回类型:bool

参数:

类型参数名称
struct request *rq
741  如果blk_rq_is_passthrough(rq)则返回:false
744  如果req_op(rq)恒等于REQ_OP_FLUSH则返回:false
747  如果req_op(rq)恒等于REQ_OP_WRITE_ZEROES则返回:false
750  如果 op and common flags 按位与REQ_NOMERGE_FLAGS则返回:false
752  如果rq_flags按位与lags that prevent us from merging requests: 则返回:false
755  返回:true
调用者
名称描述
elv_rqhash_find
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_rq_merge_ok
blk_mq_sched_try_insert_merge
dd_insert_requestadd rq to rbtree and fifo
bfq_insert_request