summaryrefslogtreecommitdiffstats
path: root/drivers/md
diff options
context:
space:
mode:
authorJens Axboe <axboe@fb.com>2016-03-30 18:16:53 +0200
committerJens Axboe <axboe@fb.com>2016-04-13 00:00:39 +0200
commit56883a7ec85f5bc2da7eca67905de54a475daebc (patch)
tree3903ac554ba611f2137973680e075ad20993ce1d /drivers/md
parentide-disk: update to using blk_queue_write_cache() (diff)
downloadlinux-56883a7ec85f5bc2da7eca67905de54a475daebc.tar.xz
linux-56883a7ec85f5bc2da7eca67905de54a475daebc.zip
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.