Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:blk_mq_req_expired

Proto:static bool blk_mq_req_expired(struct request *rq, unsigned long *next)

Type:bool

Parameter:

TypeParameterName
struct request *rq
unsigned long *next
839  If lk_mq_rq_state() - read the current MQ_RQ_* state of a request*@rq: target request. != MQ_RQ_IN_FLIGHT Then Return false
841  If rq_flags & ->timeout has been called, don't expire again Then Return false
844  deadline = READ_ONCE(deadline)
845  If time_after_eq(jiffies, deadline) Then Return true
848  If next == 0 Then next = deadline
850  Else if These inlines deal with timer wrapping correctly. You are * strongly encouraged to use them* 1. Because people otherwise forget* 2. Because if the timer wrap changes in future you won't have to* alter your driver code.( * next, deadline) Then next = deadline
852  Return false
Caller
NameDescribe
blk_mq_check_expired