diff options
author | Jens Axboe | 2016-03-30 18:11:15 +0200 |
---|---|---|
committer | Jens Axboe | 2016-04-13 00:00:39 +0200 |
commit | 177febc8430e0efa808caca721a59898c5422668 (patch) | |
tree | 94fa93fb2346ee1ede252642050a53de17d2420b /drivers | |
parent | nbd: switch to using blk_queue_write_cache() (diff) | |
download | kernel-qcow2-linux-177febc8430e0efa808caca721a59898c5422668.tar.gz kernel-qcow2-linux-177febc8430e0efa808caca721a59898c5422668.tar.xz kernel-qcow2-linux-177febc8430e0efa808caca721a59898c5422668.zip |
osdblk: switch to using blk_queue_write_cache()
Signed-off-by: Jens Axboe <axboe@fb.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/block/osdblk.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/block/osdblk.c b/drivers/block/osdblk.c index 1b709a4e3b5e..c2854a2bfdb0 100644 --- a/drivers/block/osdblk.c +++ b/drivers/block/osdblk.c @@ -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; |