Function report |
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 activity | Download SCCT | Chinese |
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:
Type | Parameter | Name |
---|---|---|
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 |
Name | Describe |
---|---|
__blk_mq_get_tag |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |