block: avoid to use q->flush_rq directly
authorMing Lei <ming.lei@canonical.com>
Thu, 25 Sep 2014 15:23:42 +0000 (23:23 +0800)
committerJens Axboe <axboe@fb.com>
Thu, 25 Sep 2014 21:22:38 +0000 (15:22 -0600)
commit7ddab5de5b80d3111f9e6765714e728b2c4f1c07
tree35c64aea8aa76af4a375102458f39417473b545a
parent3c09676c12b1dabf84acbb5849bfc54acadaf092
block: avoid to use q->flush_rq directly

This patch trys to use local variable to access flush request,
so that we can convert to per-queue flush machinery a bit easier.

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