Function report |
Source Code:block\blk-mq.c |
Create Date:2022-07-28 17:09:34 |
Last Modify:2020-03-17 23:18:05 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:Mark us waiting for a tag. For shared tags, this involves hooking us into* the tag wakeups. For non-shared tags, we can simply mark us needing a* restart. For both cases, take care to check the condition again after* marking us as waiting.
Proto:static bool blk_mq_mark_tag_wait(struct blk_mq_hw_ctx *hctx, struct request *rq)
Type:bool
Parameter:
Type | Parameter | Name |
---|---|---|
struct blk_mq_hw_ctx * | hctx | |
struct request * | rq |
1081 | sbq = bitmap_tags |
1086 | If Not (@flags: BLK_MQ_F_* flags. Defines the behaviour of the queue. & BLK_MQ_F_TAG_SHARED) Then |
1097 | Return blk_mq_get_driver_tag(rq) |
1100 | wait = @dispatch_wait: Waitqueue to put requests when there is no tag* available at the moment, to wait for another try in the future. |
1106 | spin_lock_irq( & lock) |
1108 | If Not list_empty - tests whether a list is empty*@head: the list to test. Then |
1110 | spin_unlock_irq( & lock) |
1111 | Return false |
1115 | flags &= ~wait_queue_entry::flags |
1116 | __add_wait_queue(wq, wait) |
1123 | ret = blk_mq_get_driver_tag(rq) |
1124 | If Not ret Then |
1126 | spin_unlock_irq( & lock) |
1127 | Return false |
1137 | spin_unlock_irq( & lock) |
1139 | Return true |
Name | Describe |
---|---|
blk_mq_dispatch_rq_list | Returns true if we did some work AND can potentially do more. |
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 |