block: avoid to use q->flush_rq directly
authorMing Lei <[email protected]>
Thu, 25 Sep 2014 15:23:42 +0000 (23:23 +0800)
committerJens Axboe <[email protected]>
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 <[email protected]>
Signed-off-by: Ming Lei <[email protected]>
Signed-off-by: Jens Axboe <[email protected]>
block/blk-flush.c