Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:block\blk-mq.c Create Date:2022-07-28 17:09:17
Last Modify:2020-03-17 23:18:05 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:blk_mq_check_expired

Proto:static bool blk_mq_check_expired(struct blk_mq_hw_ctx *hctx, struct request *rq, void *priv, bool reserved)

Type:bool

Parameter:

TypeParameterName
struct blk_mq_hw_ctx *hctx
struct request *rq
void *priv
boolreserved
858  next = priv
864  If Not blk_mq_req_expired(rq, next) Then Return true
876  If Not _inc_not_zero - increment a refcount unless it is 0*@r: the refcount to increment* Similar to atomic_inc_not_zero(), but will saturate at REFCOUNT_SATURATED* and WARN.* Provides no memory ordering, it is assumed the caller has guaranteed the Then Return true
885  If blk_mq_req_expired(rq, next) Then blk_mq_rq_timed_out(rq, reserved)
888  If is_flush_rq(rq, hctx) Then * completion callback.(rq, 0)
890  Else if _dec_and_test - decrement a refcount and test if it is 0*@r: the refcount* Similar to atomic_dec_and_test(), it will WARN on underflow and fail to* decrement when saturated at REFCOUNT_SATURATED Then __blk_mq_free_request(rq)
893  Return true