Commit 337238be authored by Tejun Heo's avatar Tejun Heo Committed by Jens Axboe
Browse files

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: default avatarTejun Heo <tj@kernel.org>
Reported-by: default avatarMike Snitzer <snitzer@redhat.com>
Signed-off-by: default avatarJens Axboe <jaxboe@fusionio.com>
parent cde4c406
...@@ -77,7 +77,7 @@ static void post_flush_end_io(struct request *rq, int error) ...@@ -77,7 +77,7 @@ static void post_flush_end_io(struct request *rq, int error)
static void init_flush_request(struct request *rq, struct gendisk *disk) static void init_flush_request(struct request *rq, struct gendisk *disk)
{ {
rq->cmd_type = REQ_TYPE_FS; rq->cmd_type = REQ_TYPE_FS;
rq->cmd_flags = REQ_FLUSH; rq->cmd_flags = WRITE_FLUSH;
rq->rq_disk = disk; rq->rq_disk = disk;
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment