block: flush: avoid to figure out flush queue unnecessarily
authorMing Lei <ming.lei@canonical.com>
Thu, 25 Sep 2014 15:23:45 +0000 (23:23 +0800)
committerJens Axboe <axboe@fb.com>
Thu, 25 Sep 2014 21:22:42 +0000 (15:22 -0600)
Just figuring out flush queue at the entry of kicking off flush
machinery and request's completion handler, then pass it through.

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

Simple merge