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)
commit0bae352da54a95435f721705d3670a6eaefdcf87
tree312c52c12ad21bcead3be8b8def5228003f77d68
parentba483388e3058b3e412632a84e6bf1f134beaf3d
block: flush: avoid to figure out flush queue unnecessarily

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