diff options
author | Jens Axboe <axboe@fb.com> | 2016-03-30 18:16:53 +0200 |
---|---|---|
committer | Jens Axboe <axboe@fb.com> | 2016-04-13 00:00:39 +0200 |
commit | 56883a7ec85f5bc2da7eca67905de54a475daebc (patch) | |
tree | 3903ac554ba611f2137973680e075ad20993ce1d /drivers/md/md.c | |
parent | ide-disk: update to using blk_queue_write_cache() (diff) | |
download | linux-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 '')
-rw-r--r-- | drivers/md/md.c | 2 |
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. |