diff mbox

[16/20] md: update to using blk_queue_write_cache()

Message ID 1460486175-25724-17-git-send-email-axboe@fb.com (mailing list archive)
State New, archived
Headers show

Commit Message

Jens Axboe April 12, 2016, 6:36 p.m. UTC
Signed-off-by: Jens Axboe <axboe@fb.com>
---
 drivers/md/md.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox

Patch

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.