From: Dan Carpenter Date: Fri, 23 Mar 2012 08:58:54 +0000 (+0100) Subject: block: blk_alloc_queue_node(): use caller's GFP flags instead of GFP_KERNEL X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=00380a404fc4235e9b8b39598138bd3223a27b8a;p=mv-sheeva.git block: blk_alloc_queue_node(): use caller's GFP flags instead of GFP_KERNEL We should use the GFP flags that the caller specified instead of picking our own. All the callers specify GFP_KERNEL so this doesn't make a difference to how the kernel runs, it's just a cleanup. Signed-off-by: Dan Carpenter Signed-off-by: Jens Axboe --- diff --git a/block/blk-core.c b/block/blk-core.c index 3a78b00edd7..414e8224588 100644 --- a/block/blk-core.c +++ b/block/blk-core.c @@ -483,7 +483,7 @@ struct request_queue *blk_alloc_queue_node(gfp_t gfp_mask, int node_id) if (!q) return NULL; - q->id = ida_simple_get(&blk_queue_ida, 0, 0, GFP_KERNEL); + q->id = ida_simple_get(&blk_queue_ida, 0, 0, gfp_mask); if (q->id < 0) goto fail_q;