summaryrefslogtreecommitdiffstats
path: root/drivers/block
diff options
context:
space:
mode:
authorJens Axboe <axboe@fb.com>2016-03-30 18:11:42 +0200
committerJens Axboe <axboe@fb.com>2016-04-13 00:00:39 +0200
commit6975f7327f62b7c545aeada57c40ba018d66c93c (patch)
tree1603f5ba7e3a186901b3df9137a53b99e598fda3 /drivers/block
parentosdblk: switch to using blk_queue_write_cache() (diff)
downloadlinux-6975f7327f62b7c545aeada57c40ba018d66c93c.tar.xz
linux-6975f7327f62b7c545aeada57c40ba018d66c93c.zip
skd_main: 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/block')
-rw-r--r--drivers/block/skd_main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/block/skd_main.c b/drivers/block/skd_main.c
index 9a9ec212fab8..41aaae30c005 100644
--- a/drivers/block/skd_main.c
+++ b/drivers/block/skd_main.c
@@ -4412,7 +4412,7 @@ static int skd_cons_disk(struct skd_device *skdev)
disk->queue = q;
q->queuedata = skdev;
- blk_queue_flush(q, REQ_FLUSH | REQ_FUA);
+ blk_queue_write_cache(q, true, true);
blk_queue_max_segments(q, skdev->sgs_per_request);
blk_queue_max_hw_sectors(q, SKD_N_MAX_SECTORS);