From: Tejun Heo Date: Fri, 3 Sep 2010 09:56:17 +0000 (+0200) Subject: block: initialize flush request with WRITE_FLUSH instead of REQ_FLUSH X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=337238be1bf52e1242f940fc6fe83fb395e55057;p=GitHub%2Fmt8127%2Fandroid_kernel_alcatel_ttab.git 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 Reported-by: Mike Snitzer Signed-off-by: Jens Axboe --- diff --git a/block/blk-flush.c b/block/blk-flush.c index 72905f862d31..f357f1fc411c 100644 --- a/block/blk-flush.c +++ b/block/blk-flush.c @@ -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) { rq->cmd_type = REQ_TYPE_FS; - rq->cmd_flags = REQ_FLUSH; + rq->cmd_flags = WRITE_FLUSH; rq->rq_disk = disk; }