| Function report | 
| Source Code: block\blk-cgroup.c | Create Date:2022-07-28 17:40:17 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:lkcg_init_queue - initialize blkcg part of request queue*@q: request_queue to initialize* Called from blk_alloc_queue_node(). Responsible for initializing blkcg* part of new request_queue @q.* RETURNS:* 0 on success, -errno on failure.
Proto:int blkcg_init_queue(struct request_queue *q)
Type:int
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| struct request_queue * | q | 
| 1029 | preloaded = Not Load up this CPU's radix_tree_node buffer with sufficient objects to* ensure that the addition of a single element in the tree cannot fail | 
| 1033 | spin_lock_irq( & queue_lock) | 
| 1034 | blkg = If @new_blkg is %NULL, this function tries to allocate a new one as* necessary using %GFP_NOWAIT. @new_blkg is always consumed on return. | 
| 1035 | If IS_ERR(blkg) Then Go to err_unlock | 
| 1038 | spin_unlock_irq( & queue_lock) | 
| 1041 | If preloaded Then radix_tree_preload_end() | 
| 1044 | ret = blk_iolatency_init(q) | 
| 1045 | If ret Then Go to err_destroy_all | 
| 1048 | ret = blk_throtl_init(q) | 
| 1049 | If ret Then Go to err_destroy_all | 
| 1051 | Return 0 | 
| 1053 | err_destroy_all : | 
| 1055 | Return ret | 
| 1056 | err_unlock : | 
| 1057 | spin_unlock_irq( & queue_lock) | 
| 1059 | If preloaded Then radix_tree_preload_end() | 
| 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 |