blk-mq.c (e9a99a638800af25c7ed006c96fd1dabb99254b7) blk-mq.c (5ee0524ba137fe928a88b440d014e3c8451fb32c)
1/*
2 * Block multiqueue core code
3 *
4 * Copyright (C) 2013-2014 Jens Axboe
5 * Copyright (C) 2013-2014 Christoph Hellwig
6 */
7#include <linux/kernel.h>
8#include <linux/module.h>

--- 2542 unchanged lines hidden (view full) ---

2551
2552 free_percpu(q->queue_ctx);
2553}
2554
2555struct request_queue *blk_mq_init_queue(struct blk_mq_tag_set *set)
2556{
2557 struct request_queue *uninit_q, *q;
2558
1/*
2 * Block multiqueue core code
3 *
4 * Copyright (C) 2013-2014 Jens Axboe
5 * Copyright (C) 2013-2014 Christoph Hellwig
6 */
7#include <linux/kernel.h>
8#include <linux/module.h>

--- 2542 unchanged lines hidden (view full) ---

2551
2552 free_percpu(q->queue_ctx);
2553}
2554
2555struct request_queue *blk_mq_init_queue(struct blk_mq_tag_set *set)
2556{
2557 struct request_queue *uninit_q, *q;
2558
2559 uninit_q = blk_alloc_queue_node(GFP_KERNEL, set->numa_node);
2559 uninit_q = blk_alloc_queue_node(GFP_KERNEL, set->numa_node, NULL);
2560 if (!uninit_q)
2561 return ERR_PTR(-ENOMEM);
2562
2563 q = blk_mq_init_allocated_queue(set, uninit_q);
2564 if (IS_ERR(q))
2565 blk_cleanup_queue(uninit_q);
2566
2567 return q;

--- 638 unchanged lines hidden ---
2560 if (!uninit_q)
2561 return ERR_PTR(-ENOMEM);
2562
2563 q = blk_mq_init_allocated_queue(set, uninit_q);
2564 if (IS_ERR(q))
2565 blk_cleanup_queue(uninit_q);
2566
2567 return q;

--- 638 unchanged lines hidden ---