blk-mq: allocate flush_rq in blk_mq_init_flush()
authorMing Lei <ming.lei@canonical.com>
Thu, 25 Sep 2014 15:23:39 +0000 (23:23 +0800)
committerJens Axboe <axboe@fb.com>
Thu, 25 Sep 2014 21:22:34 +0000 (15:22 -0600)
commit1bcb1eada4f11a713cbe586d1b5a5d93a48277cb
tree89e14d77cb1e95f7742ee7395ed5ff7e84afc057
parent08e98fc6016c890c2f4ffba6decc0ca9d2d5d7f8
blk-mq: allocate flush_rq in blk_mq_init_flush()

It is reasonable to allocate flush req in blk_mq_init_flush().

Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Ming Lei <ming.lei@canonical.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
block/blk-flush.c
block/blk-mq.c
block/blk-mq.h