block: initialize flush request with WRITE_FLUSH instead of REQ_FLUSH
authorTejun Heo <tj@kernel.org>
Fri, 3 Sep 2010 09:56:17 +0000 (11:56 +0200)
committerJens Axboe <jaxboe@fusionio.com>
Fri, 10 Sep 2010 10:35:37 +0000 (12:35 +0200)
commit337238be1bf52e1242f940fc6fe83fb395e55057
treecb3a81ebb1bb73aaac692f38d7d3e47007e39093
parentcde4c406d8fb051c5aafc917643adbb9dbd0abc2
block: initialize flush request with WRITE_FLUSH instead of REQ_FLUSH

init_flush_request() only set REQ_FLUSH when initializing flush
requests making them READ requests.  Use WRITE_FLUSH instead.

Signed-off-by: Tejun Heo <tj@kernel.org>
Reported-by: Mike Snitzer <snitzer@redhat.com>
Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
block/blk-flush.c