Function report |
Source Code:block\blk-mq.c |
Create Date:2022-07-28 17:11:35 |
Last Modify:2020-03-17 23:18:05 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:blk_mq_realloc_hw_ctxs
Proto:static void blk_mq_realloc_hw_ctxs(struct blk_mq_tag_set *set, struct request_queue *q)
Type:void
Parameter:
Type | Parameter | Name |
---|---|---|
struct blk_mq_tag_set * | set | |
struct request_queue * | q |
2751 | hctxs = hw dispatch queues |
2753 | If nr_hw_queues < nr_hw_queues Then |
2756 | new_hctxs = kcalloc_node(nr_hw_queues, size of new_hctxs , GFP_KERNEL, numa_node) |
2759 | If Not new_hctxs Then Return |
2764 | hw dispatch queues = new_hctxs |
2765 | nr_hw_queues = nr_hw_queues |
2771 | mutex_lock( & sysfs_lock) |
2772 | When i < nr_hw_queues cycle |
2776 | node = CPU -> queue mappings |
2782 | If hctxs[i] && @numa_node: NUMA node the storage adapter has been connected to. == node Then Continue |
2786 | If hctx Then |
2790 | Else |
2803 | If i != nr_hw_queues Then |
2804 | j = nr_hw_queues |
2806 | Else |
2815 | If hctx Then |
Name | Describe |
---|---|
blk_mq_init_allocated_queue | |
__blk_mq_update_nr_hw_queues |
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 |