]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
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, 1 Dec 2014 01:35:39 +0000 (18:35 -0700)
commit6637fadf25657e619a50fde5ff3ae09a98d20eb5
treed9d58e0931b82844bcf6783522c02064b8165ca5
parent70114c393ccaa43ca38e6b36b9469ed2c35acc49
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