函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:lk_rq_set_mixed_merge - mark a request as mixed merge*@rq: request to mark as mixed merge* Description:*@rq is about to be mixed merged. Make sure the attributes* which can be mixed are set in each bio and mark @rq as mixed* merged.

函数原型:void blk_rq_set_mixed_merge(struct request *rq)

返回类型:void

参数:

类型参数名称
struct request *rq
680  ff等于 op and common flags 按位与REQ_FAILFAST_MASK
683  如果rq_flags按位与merge of different types, fail separately 则返回
691 bio循环
692  WARN_ON_ONCE(( bottom bits req flags, * top bits REQ_OP. Use * accessors. & REQ_FAILFAST_MASK) && ( bottom bits req flags, * top bits REQ_OP. Use * accessors. & REQ_FAILFAST_MASK) != ff)
694  bottom bits req flags, * top bits REQ_OP. Use * accessors.或等于ff
696  rq_flags或等于merge of different types, fail separately
调用者
名称描述
bio_attempt_front_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.