[PATCH v3 01/10] blk-mq: allocate flush_rq in blk_mq_init_flush()

2014-09-12 Thread Ming Lei
It is reasonable to allocate flush req in blk_mq_init_flush(). Reviewed-by: Christoph Hellwig Signed-off-by: Ming Lei --- block/blk-flush.c | 11 ++- block/blk-mq.c| 16 ++-- block/blk-mq.h|2 +- 3 files changed, 17 insertions(+), 12 deletions(-) diff --git

[PATCH v3 01/10] blk-mq: allocate flush_rq in blk_mq_init_flush()

2014-09-12 Thread Ming Lei
It is reasonable to allocate flush req in blk_mq_init_flush(). Reviewed-by: Christoph Hellwig h...@lst.de Signed-off-by: Ming Lei ming@canonical.com --- block/blk-flush.c | 11 ++- block/blk-mq.c| 16 ++-- block/blk-mq.h|2 +- 3 files changed, 17