block: introduce blk_flush_queue to drive flush machinery
authorMing Lei <ming.lei@canonical.com>
Thu, 25 Sep 2014 15:23:43 +0000 (23:23 +0800)
committerJens Axboe <axboe@fb.com>
Thu, 25 Sep 2014 21:22:40 +0000 (15:22 -0600)
commit7c94e1c157a227837b04f02f5edeff8301410ba2
tree3b592095b0204ebad61dd22b77aa1e72595dbc3a
parent7ddab5de5b80d3111f9e6765714e728b2c4f1c07
block: introduce blk_flush_queue to drive flush machinery

This patch introduces 'struct blk_flush_queue' and puts all
flush machinery related fields into this structure, so that

- flush implementation details aren't exposed to driver
- it is easy to convert to per dispatch-queue flush machinery

This patch is basically a mechanical replacement.

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-core.c
block/blk-flush.c
block/blk-mq.c
block/blk.h
include/linux/blkdev.h