summaryrefslogtreecommitdiff
path: root/drivers/md
diff options
context:
space:
mode:
authorJens Axboe <axboe@fb.com>2016-03-30 10:16:53 -0600
committerJens Axboe <axboe@fb.com>2016-04-12 16:00:39 -0600
commit56883a7ec85f5bc2da7eca67905de54a475daebc (patch)
tree3903ac554ba611f2137973680e075ad20993ce1d /drivers/md
parenta98239dec6b20cff7b10b670c5d650538f8c3bcb (diff)
md: update 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/md')
-rw-r--r--drivers/md/md.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/md/md.c b/drivers/md/md.c
index 194580fba7fd..5d61e76cec34 100644
--- a/drivers/md/md.c
+++ b/drivers/md/md.c
@@ -5037,7 +5037,7 @@ static int md_alloc(dev_t dev, char *name)
disk->fops = &md_fops;
disk->private_data = mddev;
disk->queue = mddev->queue;
- blk_queue_flush(mddev->queue, REQ_FLUSH | REQ_FUA);
+ blk_queue_write_cache(mddev->queue, true, true);
/* Allow extended partitions. This makes the
* 'mdp' device redundant, but we can't really
* remove it now.