提交 337238be 编写于 作者: T Tejun Heo 提交者: Jens Axboe

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: NTejun Heo <tj@kernel.org>
Reported-by: NMike Snitzer <snitzer@redhat.com>
Signed-off-by: NJens Axboe <jaxboe@fusionio.com>
上级 cde4c406
......@@ -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;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册