blk-mq: move the kdump check to blk_mq_alloc_tag_set
authorShaohua Li <shli@kernel.org>
Mon, 1 Dec 2014 00:00:58 +0000 (16:00 -0800)
committerJens Axboe <axboe@fb.com>
Mon, 30 Mar 2015 18:54:56 +0000 (12:54 -0600)
commit9b09f666f09fb61c95f926e35b20f56e124e3c12
treebc65a40efe00e91ce1a5505de80b82b56fc92e82
parentd1cf73b1d7990ee3f722fdeb7e2a191e15c4f0a0
blk-mq: move the kdump check to blk_mq_alloc_tag_set

We call blk_mq_alloc_tag_set() first then blk_mq_init_queue(). The requests are
allocated in the former function. So the kdump check should be moved to there
to really save memory.

Signed-off-by: Shaohua Li <shli@fb.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
block/blk-mq.c