diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2012-03-23 09:58:54 +0100 |
---|---|---|
committer | Varun Wadekar <vwadekar@nvidia.com> | 2012-04-18 20:30:30 +0530 |
commit | 33575302ed6e90efd7ed43f5a3c4b88700d4c90d (patch) | |
tree | 0fe24a14b2a46060a61796ace48b1ff54feaaa1b /block | |
parent | 2e4d2b45c0efed82859d12c2f9623ef41d2219b6 (diff) |
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 <dan.carpenter@oracle.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block')
-rw-r--r-- | block/blk-core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/block/blk-core.c b/block/blk-core.c index 3a78b00edd71..414e8224588f 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; |