aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMing Lei <ming.lei@redhat.com>2018-12-17 05:42:45 -0500
committerJens Axboe <axboe@kernel.dk>2018-12-17 07:37:23 -0500
commit07b35eb5a364fa59f88f65e6c786192f2c9163be (patch)
tree88a013d7d2b6f97b5c7748735688148254ebc957
parentd19afebca47602bd9909944eb0ee406dce66174d (diff)
blk-mq: fix allocation for queue mapping table
Type of each element in queue mapping table is 'unsigned int, intead of 'struct blk_mq_queue_map)', so fix it. Cc: Jeff Moyer <jmoyer@redhat.com> Cc: Mike Snitzer <snitzer@redhat.com> Cc: Christoph Hellwig <hch@lst.de> Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Ming Lei <ming.lei@redhat.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
-rw-r--r--block/blk-mq.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/block/blk-mq.c b/block/blk-mq.c
index 2d3a29eb58ca..313f28b2d079 100644
--- a/block/blk-mq.c
+++ b/block/blk-mq.c
@@ -3019,7 +3019,7 @@ int blk_mq_alloc_tag_set(struct blk_mq_tag_set *set)
3019 ret = -ENOMEM; 3019 ret = -ENOMEM;
3020 for (i = 0; i < set->nr_maps; i++) { 3020 for (i = 0; i < set->nr_maps; i++) {
3021 set->map[i].mq_map = kcalloc_node(nr_cpu_ids, 3021 set->map[i].mq_map = kcalloc_node(nr_cpu_ids,
3022 sizeof(struct blk_mq_queue_map), 3022 sizeof(set->map[i].mq_map[0]),
3023 GFP_KERNEL, set->numa_node); 3023 GFP_KERNEL, set->numa_node);
3024 if (!set->map[i].mq_map) 3024 if (!set->map[i].mq_map)
3025 goto out_free_mq_map; 3025 goto out_free_mq_map;