Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:For shared tag users, we track the number of currently active users* and attempt to provide a fair share of the tag depth for each of them.

Proto:static inline bool hctx_may_queue(struct blk_mq_hw_ctx *hctx, struct sbitmap_queue *bt)

Type:bool

Parameter:

TypeParameterName
struct blk_mq_hw_ctx *hctx
struct sbitmap_queue *bt
68  If Not hctx || Not (@flags: BLK_MQ_F_* flags. Defines the behaviour of the queue. & BLK_MQ_F_TAG_SHARED) Then Return true
70  If Not Determine whether a bit is set(BLK_MQ_S_TAG_ACTIVE, & @state: BLK_MQ_S_* flags. Defines the state of the hw* queue (active, scheduled to restart, stopped).) Then Return true
76  If @depth: Number of bits used in the whole bitmap. == 1 Then Return true
79  users = atomic_read( & active_queues)
80  If Not users Then Return true
86  depth = max - return maximum of two values of the same or compatible types*@x: first value*@y: second value((@depth: Number of bits used in the whole bitmap. + users - 1) / users, 4U)
87  Return atomic_read( & @nr_active: Number of active requests. Only used when a tag set is* shared across request queues.) < depth
Caller
NameDescribe
__blk_mq_get_tag