From: Jens Axboe Date: Wed, 30 Mar 2016 16:11:42 +0000 (-0600) Subject: skd_main: switch to using blk_queue_write_cache() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=6975f7327f62b7c545aeada57c40ba018d66c93c;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git skd_main: switch to using blk_queue_write_cache() Signed-off-by: Jens Axboe Reviewed-by: Christoph Hellwig --- 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);