osdblk: switch to using blk_queue_write_cache()
authorJens Axboe <axboe@fb.com>
Wed, 30 Mar 2016 16:11:15 +0000 (10:11 -0600)
committerJens Axboe <axboe@fb.com>
Tue, 12 Apr 2016 22:00:39 +0000 (16:00 -0600)
Signed-off-by: Jens Axboe <axboe@fb.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
drivers/block/osdblk.c

index 1b709a4e3b5ec62eaf9709b366ea11c0d097ffd3..c2854a2bfdb0bd1027fb4f10f2c39c8761d7d709 100644 (file)
@@ -437,7 +437,7 @@ static int osdblk_init_disk(struct osdblk_device *osdev)
        blk_queue_stack_limits(q, osd_request_queue(osdev->osd));
 
        blk_queue_prep_rq(q, blk_queue_start_tag);
-       blk_queue_flush(q, REQ_FLUSH);
+       blk_queue_write_cache(q, true, false);
 
        disk->queue = q;